TypeBackspace Method

Deletes the character preceding a collapsed selection (an insertion point). If the selection isn't collapsed to an insertion point, the selection is deleted.

Note  This method corresponds to functionality of the BACKSPACE key.

expression**.TypeBackspace**

expression Required. An expression that returns a Selection object.

Example

This example deletes the character preceding the insertion point (the collapsed selection).

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

This example extends the selection to the end of the current paragraph (including the paragraph mark) and then deletes the selection.

With Selection
    .EndOf Unit:=wdParagraph, Extend:=wdExtend
    .TypeBackspace
End With

Applies to | Selection Object

See Also | EscapeKey Method | TypeParagraph Method | TypeText Method