Skip to content

Latest commit

 

History

History
61 lines (36 loc) · 1.21 KB

Word.Selection.TypeBackspace.md

File metadata and controls

61 lines (36 loc) · 1.21 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Selection.TypeBackspace method (Word)
vbawd10.chm158663169
vbawd10.chm158663169
Word.Selection.TypeBackspace
479f2e0e-06d6-cd62-dc3e-09a5fafafbfa
06/08/2017
medium

Selection.TypeBackspace method (Word)

Deletes the character preceding a collapsed selection (an insertion point).

Syntax

expression. TypeBackspace

expression Required. A variable that represents a Selection object.

Remarks

This method corresponds to functionality of the BACKSPACE key. If the selection isn't collapsed to an insertion point, the selection is deleted.

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

See also

Selection Object

[!includeSupport and feedback]