InsertParagraphBefore Method

Microsoft Word Visual Basic

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