Share via


Paragraph.OutlinePromote Method

Word Developer Reference

Applies the previous heading level style (Heading 1 through Heading 8) to the specified paragraph or paragraphs.

Syntax

expression.OutlinePromote

expression   Required. A variable that represents a Paragraph object.

Remarks

If a paragraph is formatted with the Heading 2 style, this method promotes the paragraph by changing the style to Heading 1.

Example

This example promotes the first paragraph in the selection.

Visual Basic for Applications
  Selection.Paragraphs(1).OutlinePromote

This example switches the active window to outline view and promotes the first paragraph in the active document.

Visual Basic for Applications
  ActiveDocument.ActiveWindow.View.Type = wdOutlineView
ActiveDocument.Paragraphs(1).OutlinePromote

See Also