Microsoft Word Suite
330
This example selects paragraphs that have the same tab stops and retrieves the position of the first
tab stop. The example moves the selection to the next range of paragraphs that have the same tab
stops. The example then adds the tab stop setting from the first group of paragraphs to the current
selection.
select current tabs selection
set pos to tab stop position of tab stop 1 of paragraph format of selection
collapse range text object of selection direction collapse end
select current tabs selection
make new tab stop at paragraph format of selection with properties ¬
{tab stop position:pos}
Command: select row
Selects the row that contains the insertion point, or selects all rows that contain the selection. If the
selection isn't in a table, an error occurs.
Syntax
select row selection object Required. An expression that returns a selection object.
Example
This example collapses the selection to the starting point and then selects the row that contains the
insertion point.
collapse range text object of selection direction collapse start
if (get selection information selection information type with in table) ¬
is
"True"
then
select row selection
end if
Command: send mail
Opens a message window for sending the specified document through an electronic mail system.
Note Use the send mail attach property of the Word options class to control whether the document
is sent as text in the message window or as an attachment.
Syntax
send mail document Required. An expression that returns a document object.
Example
This example sends the active document as an attachment to a mail message.
set send mail attach of settings to true
send mail active document