Microsoft Word Suite
327
Example
This example selects the entire cell containing the current selection.
select cell selection
Command: select column
Selects the column that contains the insertion point, or selects all columns that contain the selection.
If the selection isn't in a table, an error occurs.
Syntax
select column selection object Required. An expression that returns a selection object.
Example
This example collapses the selection to the ending point and then selects the column that contains
the insertion point.
collapse range text object of selection direction collapse end
if (get selection information selection information type with in table) ¬
is
"True"
then
select column selection
end if
Command: select current alignment
Extends the selection forward until text with a different paragraph alignment is encountered.
Syntax
select current alignment selection object Required. An expression that returns a selection object.
Remarks
There are four types of paragraph alignment: left, centered, right, and justified.
Example
This example positions the insertion point at the beginning of the first paragraph after the current
paragraph that doesn't have the same alignment as the current paragraph. If the alignment is the
same from the selection to the end of the document, the example moves the selection to the end of
the document and displays a message.
select current alignment selection
collapse range text object of selection direction collapse end
if (end of content of text object of selection) = ((end of content of ¬
text object of active document) - 1) then
display dialog "No change in alignment found"
end if