InsertParagraphAfter Method

Inserts a paragraph mark after a range or selection.

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


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


This example inserts a new paragraph after the current paragraph.

With Selection
    .Move Unit:=wdParagraph
    .Collapse Direction:=wdCollapseStart
End With

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

Set myRange = ActiveDocument.Range(0, 0)
With myRange
    .InsertBefore "Title"
    .ParagraphFormat.Alignment = wdAlignParagraphCenter
End With

This example inserts a paragraph at the end of the active document. The Content property returns a Range object.


Applies to | Range Object | Selection Object

See Also | InsertAfter Method | InsertParagraph Method | InsertParagraphBefore Method