InsertParagraphBefore Method

Applies To

Range object, Selection object.

Description

Inserts a new paragraph before the specified selection or range.

Note After this method is applied, the range or selection expands to include the new paragraph.

Syntax

expression.InsertParagraphBefore

expression Required. An expression that returns a Selection or Range object.

See Also

InsertAfter method, InsertBefore method, InsertParagraph method, InsertParagraphAfter method.

Example

This example inserts a new paragraph at the beginning of the active document.

ActiveDocument.Range(Start:=0, End:=0).InsertParagraphBefore
This example inserts the text "Hello" as a new paragraph before the selection.

With Selection
    .InsertParagraphBefore
    .InsertBefore "Hello"
End With