CreativeUsername
Board Regular
- Joined
- Mar 11, 2017
- Messages
- 52
I'm probably making this harder than it needs to be. Basically I need to check if column K is empty (to limit the range), and the cell offset (0,1) (actually multiple in the row). If both are empty I need it to Do nothing (stop). If "K" is not empty but the offset is empty change the offset cell value to "-". "K" will be full to the end of the range. The offset will have more blanks than filled data but the blanks are important.
Code:
For Each Cel In Range("K:K")
If Cel.Value <> "" And Cel.Offset(0, 1) <> "" Then Cel.Offset(0, 1).Value = "-"
End If
Next[code]
I thought I was close but I keep getting errors. I tried using the IsEmpty also. Apparently got that wrong. Thought of a nested if statement but apparently had syntax issues. I had it half working.. but it was overwriting information with "-" till "K" was blank.
any help would be appreciated.