Syntax
Cancel
Remarks
Cancels a mode activated by the ColumnSelect, CopyFormat, CopyText, or ExtendSelection statements.
Example
This example pastes the contents of the Clipboard into a document, selects the pasted text, and then places the text of the selection into a variable. To accomplish this task, the macro inserts a bookmark at the insertion point, pastes the text, and then, using ExtendSelection, selects the pasted text. The Cancel statement turns off extend mode, so that when the last instruction moves the insertion point to the end of the document, no text is selected.
CopyBookmark "\Sel", "temp" EditPaste ExtendSelection EditGoTo "temp" pasted$ = Selection$() Cancel EndOfDocument
See Also
OK