EscapeKey Method

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


expression Required. An expression that returns a Selection object.


This example turns on and then cancels extend mode.

With Selection
    .ExtendMode = True
End With

Applies to | Selection Object

See Also | TypeBackspace Method | TypeParagraph Method | TypeText Method