Microsoft Word Suite
232
Command: collapse outline
Collapses the text under the specified text range by one heading level.
Note If the document isnt in outline or master document view, an error occurs.
Syntax
collapse outline view Required. An expression that returns a view object.
[text range text range] Optional. The text range of paragraphs to be collapsed. If this argument
is omitted, the entire selection is collapsed.
Example
This example applies the Heading 2 style to the second paragraph in the active document, switches
the active window to outline view, and collapses the text under the second paragraph in the
document.
set style of paragraph 2 of active document to style heading2
set view type of view of active window to outline view
collapse outline view of active window text range text object of ¬
paragraph 2 of active document
This example collapses every heading in the document by one level.
set view type of view of active window to outline view
collapse outline view of active window text range ¬
text object of active document
Command: compare
Displays revision marks that indicate where the specified document differs from another document.
Syntax
compare document Required. An expression that returns a document object.
path Unicode text Required. The name and path of the document that the specified document is
compared with.
Note The document you want to use as the base document to compare the specified document to
must be the active document for revision marks to appear.
Example
This example compares the active document with the document named "First Rev.doc" in the
Shared folder.
compare active document path "Macintosh HD:Users:Shared:First Rev.doc"