Microsoft KB Archive/38321

From BetaArchive Wiki

Using the QUIT Instruction in a Word Macro

PSS ID Number: Q38321 Article last modified on 11-02-1994

4.00 5.00 5.50 6.00

MS-DOS

SUMMARY

In Microsoft Word for MS-DOS versions 4.0, 5.0, and 5.5, the QUIT instruction in a macro is primarily used as a terminator for the IF and WHILE instructions and immediately ends the macro.

Using the QUIT instruction inside a nested macro terminates only the nested macro. It does not quit the entire macro.

Note: It is also possible to exit Word completely in a macro. With Word versions 4.0 and 5.0, include an “<esc>q” command; with Word version 5.5, include an “<alt f>x” (File Exit) command within a macro. Word will prompt you to save all modified files and then will exit.

KBCategory: kbother kbmacro KBSubcategory: Additional reference words: 4.00 5.00 5.50 ============================================================================= Copyright Microsoft Corporation 1994.