Microsoft Word Suite
254
Example
This example expands every heading in the document by one level.
set view type of view of active window to outline view
expand outline view of active window text range text object of active document
This example expands the active paragraph in the Document2 window.
activate window "Document2"
set view type of view of window "Document2" to outline view
expand outline view of window "Document2"
Command: extend
Turns Extend mode on and extends the selection to the next unit of text. The progression is as
follows: word, sentence, paragraph, section, entire document. If character is specified, extends the
selection through the next instance of the specified character.
Syntax
extend selection object Required. An expression that returns a selection object.
[character Unicode text] Optional. The character that the selection is to be extended through.
This argument is case sensitive.
Example
This example extends the selection through the next instance of a capital "R".
extend selection character "R"
Command: find key
Returns a key binding object that represents the specified custom key combination.
Syntax
find key
key code integer Required. A key code returned by the build key code command.
[key_code_2 enumeration] Optional. A secondary key code returned from the build key code
command.
Remarks
Use the build key code command to create the key code or key_code_2 argument.