VBA checking cell interior color
<p>I am trying to do something depending on the interior color of a cell.</p>

<p>This is my code so far but it is showing errors on the If line.</p>

<pre><code>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
</code></pre>

<p>If you have any idea it would be appreciated. Thanks</p>