Microsoft Word Suite
224
Command: calculate selection
Calculates a mathematical expression within a range or selection. Returns the result as a small real
number.
Syntax
calculate selection Required. An expression that returns a selection object.
Example
This example calculates the selected mathematical expression and displays the result.
display dialog "And the answer is... " & (calculate selection selection)
Command: can continue previous list
Returns a constant (continue disabled, reset list, or continue list) that indicates whether the
formatting from the previous list can be continued.
Syntax
can continue previous list list format/Word list Required. An expression that returns a Word list
or list format object.
list template list template Required list template object. A list template thats been applied to
previous paragraphs in the document.
Remarks
This method returns the state of the Continue previous list and Restart numbering options in the
Bullets and Numbering dialog box for a specified list format. To change the settings of these
options, set the continue previous list argument of the
apply list template
command.
Example
This example checks to see whether numbering from a previous list is disabled. If it isn't disabled,
the current list template is applied with numbering set to continue from the previous list. The
selection must be within the second list, or this example creates an error.
set myLF to list format of text object of selection
set temp to can continue previous list myLF list template (list template ¬
of
myLF)
if temp is not continue disabled then
apply list template Word list of selection list template (list template ¬
of myLF) with continue previous list
end if