I am trying to do something depending on the interior color of a cell.
This is my code so far but it is showing errors on the If line.
For i = 3 To dumpLastRow
With masterFile.Sheets(dumpRef)
If .Range("A", i).Interior.ColorIndex = 4 Then
''''CODE''''
Else
''''CODE''''
End If
End With
Next
If you have any idea it would be appreciated. Thanks
If .Range("A", i).Interior.ColorIndex = 4 ThentoIf .Range("A", i).Interior.Color = 4 Then- Shai Rado.Range("A", i)be? Where is it documented? Either.Range("A" & i)or.Cells(i, "A")can be used. - Axel RichterIf .Range("A" & i).Interior.ColorIndex = 4 Then- Shai Rado