+ Reply to Thread
Results 1 to 3 of 3

counting comments

  1. #1
    Robert Shlemkevich
    Guest

    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. #2
    Gary''s Student
    Guest

    RE: counting comments

    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. #3
    Gary''s Student
    Guest

    RE: counting comments

    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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1