I need to write a macro that searches a specified column and counts all the cells that contain a specified string, such as \"19/12/11\" or \"Green\"
\"19/12/11\" or \"Green\"
Do you mean you want to use a formula in VBA? Something like:
Dim iVal As Integer iVal = Application.WorksheetFunction.COUNTIF(Range("A1:A10"),"Green")
should work.