OutlinePromote Method

Microsoft Word Visual Basic

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.

expression.OutlinePromote

expression    Required. An expression that returns a Paragraph or Paragraphs object.

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.

ActiveDocument.ActiveWindow.View.Type = wdOutlineView
ActiveDocument.Paragraphs(1).OutlinePromote