VBA: Add or Remove Cell Comments from a Macro
Modifying a worksheet from code? Why not drop a comment in then to let the user know about what you’ve just done? The following code snippets show you how to add or delete a comment in a cell.
1. Put the following code somewhere in your macro to add a comment
Sheet1.Range("A1").AddComment ("Hello World")
2. To delete a comment use this code
Sheet1.Range("A1").Comment.Delete
Can't get the tutorial to work for you? Need help with your code?
Get answers right away at our AE Excel Support Forums!
Get answers right away at our AE Excel Support Forums!



a better way is with a range…
ActiveSheet.Range(“A1:Z999″).ClearComments
works with ’07 Excel
Buddy… do you know of a way to make this conditional based on the contents of the comment? Such as a blank comment or specific text?
Thank you