Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Robert Shlemkevich
 
Posts: n/a
Default counting comments

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?
  #2   Report Post  
Gary''s Student
 
Posts: n/a
Default

check out this reference:

http://www.pcreview.co.uk/forums/thread-1770361.php

you can generalize this by using your range in place of ROWS(1)
--
Gary''s Student


"Robert Shlemkevich" wrote:

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?

  #3   Report Post  
Gary''s Student
 
Posts: n/a
Default

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
--
Gary''s Student


"Gary''s Student" wrote:

check out this reference:

http://www.pcreview.co.uk/forums/thread-1770361.php

you can generalize this by using your range in place of ROWS(1)
--
Gary''s Student


"Robert Shlemkevich" wrote:

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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell Comments randomly move and resize regardless of settings Andrew Excel Discussion (Misc queries) 0 August 24th 05 08:49 PM
Comments problem [email protected] Excel Discussion (Misc queries) 3 July 22nd 05 07:18 PM
Lookup Text in Comments malik641 Excel Worksheet Functions 2 July 5th 05 12:36 PM
Can I reference comments by Cell Name? flo1730 Excel Discussion (Misc queries) 5 June 15th 05 03:34 PM
Comments LilLiz Excel Discussion (Misc queries) 2 April 2nd 05 12:18 AM


All times are GMT +1. The time now is 04:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"