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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top