Share via


Selection.InsertParagraph Method (Word)

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.

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

See Also

Concepts

Selection Object

Selection Object Members