Microsoft Word Suite
301
Command: next header footer
If the selection is in a header, this method moves to the next header within the current section (for
example, from an odd header to an even header) or to the first header in the following section. If the
selection is in a footer, this method moves to the next footer.
Note If the selection is in the last header or footer in the last section of the document, or if its not in
a header or footer at all, an error occurs.
Syntax
next header footer view Required. An expression that returns a view object.
Example
This example displays the first page header in the active document and then switches to the next
header. The document needs to be at least two pages long.
set different first page header footer of page setup of active document ¬
to
true
set view type of view of active window to page view
set seek view of view of active window to seek first page header
next header footer view of active window
Command: next revision
Locates and returns the next tracked change as a revision object.
Syntax
next revision selection object Required. An expression that returns a selection object.
[wrap Boolean] Optional. True to continue searching for a revision at the beginning of the
document when the end of the document is reached. The default value is false.
Command: on time
Starts a background timer that runs a VB macro on the specified date and at the specified time.
Syntax
on time
when Unicode text Required. The time at which the macro is to be run. Can be a string that
specifies a time (for example,
4:30 pm
or
16:30
), or it can be a serial number returned by a
function. You can also include the date (for example,
6/30 4:15 pm
).
name Unicode text Required. The name of the macro to be run. Use the complete macro path to
ensure that the correct macro is run (for example,
Project.Module1.Macro1
). For the macro to
run, the document or template must be available both when the on time instruction is run and
when the time specified by when arrives. For this reason, its best to store the macro in
Normal.dot or another global template thats loaded automatically.