Cancel Method

Home Page (Objects)OverviewFAQReference

Applies to: TextSelection object

Cancels a selection.

Syntax

object.Cancel

Parameters

object

An expression that evaluates to a TextSelection object.

Remarks

This method has the same effect as pressing the ESC key.

Example

The following example cancels the current selection:

ActiveDocument.Selection.Cancel