Selection.TypeParagraph Method

Word Developer Reference

Inserts a new, blank paragraph.

Syntax

expression.TypeParagraph

expression   Required. A variable that represents a Selection object.

Remarks

This method corresponds to the functionality of the ENTER key. If the selection isn't collapsed to an insertion point, the new paragraph replaces the selection.

Use the InsertParagraphAfter or InsertParagraphBefore method to insert a new paragraph without deleting the contents of the selection.

Example

This example collapses the selection to its end and then inserts a new paragraph following it.

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

See Also