Comment Object
Represents a cell comment.
Remarks
The Comment object is a member of the Comments collection.
Example
Use the Comment property to return a Comment object. The following example changes the text in the comment in cell E5.
| Visual Basic for Applications |
|---|
|
Use Comments(), where is the comment number, to return a single comment from the Commentscollection. The following example hides comment two on worksheet one.
| Visual Basic for Applications |
|---|
|
Use the AddComment method to add a comment to a range. The following example adds a comment to cell E5 on worksheet one.
| Visual Basic for Applications |
|---|
|
See also:
| index | index |