Sub FillGreen()
Dim LR As Long, i As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To LR
With Range("A" & i)
If .Interior.ColorIndex = xlNone Then .Interior.ColorIndex = 4
End With
Next i
End Sub
Selection.SpecialCells(xlCellTypeBlanks).Select
Activesheet.UsedRange.SpecialCells(xlCellTypeBlanks).Interior.Color = RGB(255,0,0)
Thank you so much. code is working fine PeterAssuming that those cells are not blank try
Code:Sub FillGreen() Dim LR As Long, i As Long LR = Range("A" & Rows.Count).End(xlUp).Row For i = 1 To LR With Range("A" & i) If .Interior.ColorIndex = xlNone Then .Interior.ColorIndex = 4 End With Next i End Sub