Oldjay
This will achieve what you want for a continuous range, Column A in
this example. Change the variables to suit.
Take care
Marcus
Option Explicit
Sub MyCount()
Dim lw As Integer
Dim counter As Integer
Dim MyConstant As Integer
Dim i As Integer
lw = Range("A" & Rows.Count).End(xlUp).Row
counter = 0
MyConstant = Range("A2" & lw).SpecialCells(xlCellTypeConstants).Count
MsgBox "There are " & MyConstant & " Cells with constants in the Range
"
For i = 1 To lw
If Range("A" & i).Interior.ColorIndex = 36 Then
counter = counter + 1
End If
Next
MsgBox counter
End Sub