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