ShowComments Property

Microsoft Word Visual Basic

expression.ShowComments

expression    Required. An expression that returns a View object.

Remarks

If revision marks are displayed in balloons in the right or left margin, comments are displayed in balloons. If revision marks are displayed inline, the text to which comments apply is surrounded by wide-angled square brackets; when a user places the mouse pointer over the text within the brackets, the related comment is displayed in a square balloon directly above the mouse pointer.

Example

This example hides the comments in the active document. This example assumes that the document in the active window contains one or more comments.

Sub HideComments()
    ActiveWindow.View.ShowComments = False
End Sub