Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA - DETECT CELL COMMENT IN VBA

What VBA statement(s) can I use to determine whether or not a specific cell
has a comment attached to it?

Please reply directly to

Thanks

Al Baker


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default VBA - DETECT CELL COMMENT IN VBA

Al, here is one way,

Sub Check_For_Comment()
Dim cm As Comment

Set cm = ActiveCell.Comment
If cm Is Nothing Then
MsgBox "No Comment In Cell " & Selection.Address, , "Comment ?"
ElseIf Not cm Is Nothing Then
MsgBox "Comment In Cell " & Selection.Address, , "Comment ?"
End If
End Sub


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Al Baker" <Al wrote in message
...
What VBA statement(s) can I use to determine whether or not a specific

cell
has a comment attached to it?

Please reply directly to


Thanks

Al Baker




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
VB ; How do I detect a Comment in a cell rdwj Excel Discussion (Misc queries) 5 June 4th 08 09:17 PM
detect cell change diepenbos Excel Programming 1 August 18th 05 02:49 AM
How to detect if a cell is formula Soo Cheon Jheong Excel Programming 1 May 30th 04 11:16 AM
Detect Comment + Happy Christmas Chris Gorham[_3_] Excel Programming 2 December 25th 03 12:44 PM
Detect when Active Cell Changes GarethG[_8_] Excel Programming 1 October 22nd 03 02:16 PM


All times are GMT +1. The time now is 11:28 AM.

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"