Deselects any selections in a document.
NotesUIDocument
Call notesUIDocument .DeselectAll
If there is nothing selected, this method raises the error "Document command is not available."
EditDeselectAll @command in formula language
Example