Share via


Comment.Range Property

Word Developer Reference

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.

Visual Basic for Applications
  With ActiveDocument.Comments(1).Range
    .Delete
    .InsertBefore "new comment text"
End With

See Also