ShowAllHeadings Method Example

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

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