Comment.Range property (Word)

Returns a Range object that represents the contents of a comment.

Syntax

expression.Range

expression Required. A variable that represents a 'Comment' object.

Example

This example changes the text of the first comment in the document.

With ActiveDocument.Comments(1).Range 
 .Delete 
 .InsertBefore "new comment text" 
End With

See also

Comment Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.