Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi to everyone,
does anyone to know how to build a function, not a macro, to count the number of comments in a cells range? searching to this news group I found this code: Public Function CommentCount() Dim cell As Range Dim cnt As Long Dim cmt As Comment Application.Volatile On Error Resume Next For Each cell In Selection Set cmt = Nothing Set cmt = cell.Comment If Not cmt Is Nothing Then cnt = cnt + 1 End If Next cell CommentCount = cnt End Function but it doesn't seem to work for me. Can someone help me? I really do appreciate who will give to me an hand Bye,Stefano. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel 2000 how to format the comments font all comments | Excel Discussion (Misc queries) | |||
Count funtion in Pivot Table | Excel Discussion (Misc queries) | |||
count comments | Excel Discussion (Misc queries) | |||
Formula format for Count or Countif funtion with two criterias | Excel Worksheet Functions | |||
Count Comments | Excel Worksheet Functions |