Comment.Previous Method
Excel Developer Reference |
Returns a Comment object that represents the previous comment.
Syntax
expression.Previous
expression An expression that returns a Comment object.
Return Value
Comment
Remarks
This method works only on one sheet. Using this method on the first comment on a sheet returns Null (not the last comment on the previous sheet).
Example
This example deletes every second comment, navigating with the Previous method.
Note |
---|
Please test in a new workbook with no existing comments. To clear all comments from a workbook use Selection.SpecialCells(xlCellTypeComments).Delete in the Immediate Pane. |
Visual Basic for Applications |
---|
|
See Also