Comments Object
Excel Developer Reference |
A collection of cell comments.
Remarks
Each comment is represented by a Comment object.
Example
Use the Comments property to return the Comments collection. The following example hides all the comments 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 |
---|
|
Use Comments(
index
), where
index
is the comment number, to return a single comment from the Comments collection. The following example hides comment two on worksheet one.
Visual Basic for Applications |
---|
|
See Also