InsertParagraphBefore Method

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.

expression**.InsertParagraphBefore**

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

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

Applies to | Range Object | Selection Object

See Also | InsertAfter Method | InsertBefore Method | InsertParagraph Method | InsertParagraphAfter Method