I am sorry it you are seeing this twice as it did not appear last time
I am using this function in Excel 2010 to try to count rows coloured yellow, but it always returns 0.
Any ideas please
Braddy
Function CountYellow()
LastRow = Range(“A65000”).End(xlUp).Row
CountYellow = 0
For x = 1 To LastRow
Debug.Print Rows(x).Interior.ColorIndex
If Rows(x).Interior.ColorIndex = 6 Then CountYellow = CountYellow + 1
Next x
End Function