Microsoft Word Suite
308
Example
This example changes the name of the style named "SubText" in the active document to "SubText2."
if exists (Word style "SubText" of active document) then
organizer rename source (full name of active document) name ¬
"SubText" new name "SubText2" organizer object type ¬
organizer
object
styles
end if
Command: page scroll
Scrolls through the specified pane or window page by page.
Syntax
page scroll window/pane Required. An expression that returns a window or pane object.
[down integer] Optional. The number of pages to be scrolled down. If this argument is omitted,
this value is assumed to be 1.
[up integer] Optional. The number of pages to be scrolled up.
Remarks
The page scroll command is available only if you're in page layout view or online layout view. This
command doesn't affect the position of the insertion point.
If down and up are both specified, the window is scrolled by the difference of the arguments. For
example, if down is 2 and up is 4, the window is scrolled up two pages.
Example
This example scrolls down three pages in the active window.
set view type of view of active window to page view
page scroll active window down 3
This example scrolls up one page in the active pane.
set view type of view of active window to page view
page scroll active pane of active window up 1
This example scrolls down one page in the active window.
set view type of view of active window to page view
page scroll active window
Command: paste format
Applies formatting copied with the
copy format
command to the selection. If a paragraph mark was
selected when the copy format command was used, Word applies paragraph formatting in addition
to character formatting.
Syntax
paste format selection object Required. An expression that returns a selection object.