The information in this article applies to:
SUMMARY
To use the WordBasic Goto statement in your Word macro to branch to a
specific line number in the macro, your macro must contain a line number at
the beginning of the line.
For more information about the Goto statement, see page 230 of "Using
WordBasic."
MORE INFORMATIONIn the Word for Windows WordBasic macro language, it is not customary to number the lines of your macro, but it is acceptable to do so. Do not type a colon (:) after the number. For example, the following line does not contain a valid line number, while the macro in the previous section does contain valid line numbers:
Line numbers do not need to be continuous, and you can number the
lines in ascending as well as descending order, as shown in the sample
macro below. It is a programming custom to number lines in ascending
order.
Sample Macro, Numbered Noncontinuously in Descending Order
REFERENCES"Using WordBasic," by WexTech Systems and Microsoft, page 230 Additional query words: macro
Keywords : winword word6 winword2 word7 word95 kbFont macword6 |
Last Reviewed: December 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |