using countif function in code

  • Thread starter Thread starter Bradly
  • Start date Start date
How can I express this in VBA code:

countif(c:c,c2)

Thanks.

Try something like this:

WorksheetFunction.CountIf(Sheets("Sheet1").Range("C:C"),
Sheets("Sheet1").Range("C2"))

Hope this helps / Lars-Åke
 
Back
Top