TypeParagraph Method

Applies To

Selection object.

Description

Inserts a new, blank paragraph. If the selection isn't collapsed to an insertion point, it's replaced by the new paragraph. Use the InsertParagraphAfter or InsertParagraphBefore method to insert a new paragraph without deleting the contents of the selection.

Note This method corresponds to the functionality of the ENTER key.

Syntax

expression.TypeParagraph

expression Required. An expression that returns a Selection object.

See Also

EscapeKey method, TypeBackspace method.

Example

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

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