OutlinePromote Method
Applies To
Paragraph object, Paragraphs collection object.
Description
Applies the previous heading level style (Heading 1 through Heading 8) to the specified paragraph or paragraphs. For example, if a paragraph is formatted with the Heading 2 style, this method promotes the paragraph by changing the style to Heading 1.
Syntax
expression.OutlinePromote
expression An expression that returns a Paragraph or Paragraphs object.
See Also
OutlineDemote method, OutlineLevel property.
Example
This example promotes the selected paragraphs.
Selection.Paragraphs.OutlinePromote
This example switches the active window to outline view and promotes the first paragraph in the active document.
ActiveWindow.View.Type = wdOutlineView
ActiveDocument.Paragraphs(1).OutlinePromote