Share via


Paragraphs.OutlinePromote Method (Word)

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

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

Selection.Paragraphs.OutlinePromote

This example switches the active window to outline view and promotes all paragraphs in the active document.

ActiveDocument.ActiveWindow.View.Type = wdOutlineView 
ActiveDocument.Paragraphs.OutlinePromote

See Also

Concepts

Paragraphs Collection Object

Paragraphs Object Members