Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can I programatically detect if there are any comments on a worksheet?
Geoff |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub test()
Dim nComs As Long nComs = ActiveSheet.Comments.Count msgbox nComs End sub Regards, Peter T How can I programatically detect if there are any comments on a worksheet? Geoff |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for that.
Geoff "Peter T" wrote: Sub test() Dim nComs As Long nComs = ActiveSheet.Comments.Count msgbox nComs End sub Regards, Peter T How can I programatically detect if there are any comments on a worksheet? Geoff |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this function:
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 "Geoff" wrote: How can I programatically detect if there are any comments on a worksheet? Geoff |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel 2000 how to format the comments font all comments | Excel Discussion (Misc queries) | |||
in excel useing comments how do you add clip art to comments? | New Users to Excel | |||
Counting comments | Excel Worksheet Functions | |||
counting comments | Excel Worksheet Functions | |||
Counting Rows Then Counting Values in Columns | Excel Programming |