Microsoft Word Suite
275
Command: home key
Moves or extends the selection to the beginning of the specified unit. This command returns a text
range that represents the new text range of the selection, or returns a missing value if the move was
unsuccessful.
Note This command corresponds to the functionality of the HOME key.
Syntax
home key selection object Required. An expression that returns a selection object.
[move enumeration] Optional. The unit by which the selection is to be moved or extended. Can
be one of the following: unit a story, unit a column, unit a screen, unit a section, unit a line,
or unit a row. The default value is unit a line.
[extend enumeration] Optional. Specifies the way the selection is moved. Can be one of the
following: by moving or by extending. If the value of this argument is by moving, the
selection is collapsed to an insertion point and moved to the beginning of the specified unit. If
the value of this argument is by extending, the beginning of the selection is extended to the
beginning of the specified unit. The default value is by moving.
Example
This example moves the selection to the beginning of the current story. If the selection is in the main
text story, the selection is moved to the beginning of the document.
home key selection move unit a story extend by moving
Command: inches to points
Converts a measurement from inches to points (1 inch = 72 points). Returns the converted
measurement as a small real number.
Syntax
inches to points
inches small real Required. The inch value to be converted to points.
Example
This example sets the space before for the selected paragraphs to 0.25 inch.
set space before of paragraph format of selection to ¬
inches to points inches 0.25
This example prints each open document after setting the left and right margins to 0.65 inch.
repeat with openDoc in (every document)
set left margin of page setup of openDoc to inches to points inches 0.65
set right margin of page setup of openDoc to inches to points inches 0.65
print out openDoc
end repeat