Range.ShowAll property (Word)

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

Syntax

expression. ShowAll

expression Required. A variable that represents a Range object.

Remarks

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.

Example

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

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

See also

Range 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.