View.ShowAllHeadings method (Word)

Switches between showing all text (headings and body text) and showing only headings.

Syntax

expression. ShowAllHeadings

expression Required. A variable that represents a 'View' object.

Remarks

This method generates an error if the view isn't outline view or master document view.

Example

This example uses the ShowHeading method to show all headings (without any body text) and then switches the display to show all text (headings and body text) in outline view.

With ActiveDocument.ActiveWindow.View 
 .Type = wdOutlineView 
 .ShowHeading 9 
 .ShowAllHeadings 
End With

See also

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