The title may be typically simple, but I did not get a solution yet even after researching over several forums on the net.
Let me explain the problem.
I have
Using the following works for me where I made a few cells in C default red.
Dim ws As Worksheet
Set ws = Sheets("sheet1")
Dim i As Integer
i = 1
Do Until i = 11
If ws.Range("C" & i).Interior.Color = RGB(255, 0, 0) Then
debug.print "C" & i & " is red!!"
End If
i = i + 1
Loop
Edit:
This also works using colorindex = 3
I think your problem is a combination of activecell
and IIf