EscapeKey Method

Applies To

Selection object.

Description

Cancels a mode such as extend or column select (equivalent to pressing the ESC key).

Syntax

expression.EscapeKey

expression    expression that returns a Selection object.

See Also

TypeBackspace method, TypeParagraph method, TypeText method.

Example

This example turns on and then cancels extend mode.

With Selection
    .ExtendMode = True
    .EscapeKey
End With