ironsides
Well-known Member
- Joined
- Aug 12, 2002
- Messages
- 575
Sub ColorLine()
Dim LR As Long, i As Long
LR = Range("g" & Rows.Count).End(xlUp).Row
For i = 7 To LR
With Range("g" & i)
If .Value = "" Then .Offset(, -6).Resize(, 28).Interior.ColorIndex = 4
End With
Next i
End Sub
Formula works well
except I want the color to stop on col AC
instead of continuing across entire sheet
Dim LR As Long, i As Long
LR = Range("g" & Rows.Count).End(xlUp).Row
For i = 7 To LR
With Range("g" & i)
If .Value = "" Then .Offset(, -6).Resize(, 28).Interior.ColorIndex = 4
End With
Next i
End Sub
Formula works well
except I want the color to stop on col AC
instead of continuing across entire sheet