Range.ShowAll Property (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

True if all nonprinting characters (such as hidden text, tab marks, space marks, and paragraph marks) are displayed. Read/write Boolean.

expression .ShowAll

expression Required. A variable that represents a Range object.

This property only affects the specified range when Show Markup is set to Show Revisions in Balloons. When Range.ShowAll is set to False, Range.Text provides all of the text in the range except deleted text. If you set Range.ShowAll to True, then Range.Text provides all of the text in the range including the text that was deleted.

The following example displays all the text in the specified range, excluding deleted text.

Note Note

This example assumes that the active document has change tracking enabled, that Show Markup is set to Show Revisions in Balloons, and that some text has been deleted from the document.

Sub HideDeletedText()
Dim r As Range

Set r = ActiveDocument.Range
r.ShowAll = False
Debug.Print r.Text

End Sub

Concepts

Other resources

Show: