Microsoft Word Suite
277
Command: insert auto text entry
Inserts the AutoText entry in place of the specified range. If you don't want to replace the range, use
the
collapse range
command before using this command. The inserted AutoText entry is returned as
a text range object.
Syntax
insert auto text entry auto text entry Required. An expression that returns an auto text entry
object.
where text range Required text range object. The location for the AutoText entry.
[rich text Boolean] Optional. True to insert the AutoText entry with its original formatting.
Example
This example inserts the formatted AutoText entry named "one" after the selection.
collapse range text object of selection direction collapse end
insert auto text entry auto text entry "one" of normal template ¬
where text object of selection with rich text
Command: insert break
Inserts a page, column, or section break.
Syntax
insert break
at text range Required. An expression that returns a text range.
[break type enumeration] Optional. The type of break to be inserted. Can be one of the
following: page break, column break, section break next page, section break continuous,
section break even page, section break odd page, or line break. The default value is page
break.
Remarks
When you insert a page or column break, the text range is replaced by the break. If you don't want
to replace the text range, use the collapse range command before using the insert break command.
When you insert a section break, the break is inserted immediately preceding the text range object.
Example
This example inserts a page break immediately following the second paragraph in the active
document.
set myRange to text object of paragraph 2 of active document
set myRange to collapse range myRange direction collapse end
insert break at myRange break type page break