I need cells C8:C15 to be set to "No" or blank if the adjacent cell in column B is either populated or empty, respectively.
I have:
Dim LR As Long, i As Long
LR = Range("B8:B15").Row
For i = 8 To LR
With Range("B" & i)
If Value = "" Then
.Offset(, 1).Value = ""
Else
.Offset(, 1).Value = "No"
End If
End With
Next i
but it doesn't work properly.
What have i done wrong?
I have:
Dim LR As Long, i As Long
LR = Range("B8:B15").Row
For i = 8 To LR
With Range("B" & i)
If Value = "" Then
.Offset(, 1).Value = ""
Else
.Offset(, 1).Value = "No"
End If
End With
Next i
but it doesn't work properly.
What have i done wrong?