Hey Mr.Excel
I'm working on a macro that controlls worksheet. I want my macro to check for each cell if the cell.value is empty in the range from ("F4:F20") and if that is true then check the if the range from U4:AD4 dont have the value = "LB0.1"
this is my code
Hope you can help me
I'm working on a macro that controlls worksheet. I want my macro to check for each cell if the cell.value is empty in the range from ("F4:F20") and if that is true then check the if the range from U4:AD4 dont have the value = "LB0.1"
Code:
Sub populateB()Dim rng1 As Range
Dim rng2 As Range
Set rng1 = Range("F4:F15")
For Each cel In rng1
If cel.Value = "" Then cel.Offset(0, 25).Value = "LB0.1"
Next
End Sub
Hope you can help me