... including URL and other Internet Web site references, is subject to change. without notice. ... does not give you any license to these patents, tr
Document source : download.microsoft.com
Microsoft Word Suite
276
Command: insert
Inserts the specified text at the end of a range or selection.
Syntax
insert
text Unicode text Required. The text to be inserted.
at location reference Required. The location to insert the new text. This argument must specify a
text range within the document.
Example
This example inserts text at the end of the active document.
insert text "end of document" at end of text object of active document
Command: insert auto text
Attempts to match the text in the specified range or the text surrounding the range with an existing
AutoText entry name. If any such match is found, insert auto text inserts the AutoText entry to
replace that text. If a match cannot be found, an error occurs.
Syntax
insert auto text
at text range Required. An expression that returns a text range object.
Example
This example inserts an AutoText entry that matches the text around a selection.
make new document
type text selection text "Best w"
insert auto text at text object of selection
This example inserts an AutoText entry with a name that matches the first word in the active
document.
make new document
type text selection text "In "
set myRange to word 1 of active document
insert auto text at myRange
Summary :
Microsoft Word Suite 276 Command: insert Inserts the specified text at the end of a range or selection. at end of text object of active document Command: insert auto text Attempts to match the text in the specified range or the text surrounding the range with an existing AutoText entry name.
Tags :
insert,document,range,selection,auto,example,inserts,actie,autotext,entry,object,match,new