counting comments

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am looking for a way to do one of two things. Either count the number of
comments in a row or column of cells, or to count the number of times a
specific word appears in a series of comments in a row or column.

Any suggestions?
 
Here is an adaptation of Pearson's code that I got to work:

Function ccount(r As Range) As Integer
Dim C As Comment
Dim r1 As Range
ccount = 0
For Each r1 In r
On Error Resume Next
Set C = r1.Comment
If Err.Number = 0 Then
ccount = 1 + 1
End If
On Error GoTo 0
Next
End Function
 

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