InsertParagraph Method

Replaces the specified range or selection with a new paragraph.

Note  After this method has been used, the range or selection is the new paragraph.


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


If you don't want to replace the range or selection, use the Collapse method before using this method. The InsertParagraphAfter method inserts a new paragraph following a Range or Selection object.


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

Set myRange = ActiveDocument.Range(0, 0)
With myRange
    .InsertBefore "Dear Sirs,"
End With

This example collapses the selection and then inserts a paragraph mark at the insertion point.

With Selection
    .Collapse Direction:=wdCollapseStart
    .Collapse Direction:=wdCollapseEnd
End With

Applies to | Range Object | Selection Object

See Also | InsertAfter Method | InsertBefore Method | InsertParagraphAfter Method | InsertParagraphBefore Method