Selection.InsertParagraph Method

Word Developer Reference

Replaces the specified selection with a new paragraph.

Syntax

expression.InsertParagraph

expression   Required. A variable that represents a Selection object.

Remarks

After using method, the selection contains the new paragraph. If you don't want to replace the current selection, use the Collapse method before using this method. You can also use the InsertParagraphBefore or InsertParagraphAfter method to insert a new paragraph before or after a selection.

Example

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

Visual Basic for Applications
  With Selection
    .Collapse Direction:=wdCollapseStart
    .InsertParagraph
    .Collapse Direction:=wdCollapseEnd
End With

See Also