The information in this article applies to:
SYMPTOMSIn Microsoft Word versions 2.0a and later, the WordBasic Error 124, "Undefined Sub or Function," cannot be trapped with the On Error command. MORE INFORMATIONIn previous versions of Word for Windows, the following method of error trapping could be used to skip over an undefined subroutine, function, or command:
Error trapping does not work with undefined subroutines, functions, or
commands. The On Error command was designed to trap user errors (such
as choosing the Cancel button in a dialog box) rather than program
errors. To avoid WordBasic Error 124, the macro must be designed so
that it does not call an undefined subroutine, function, or command.
REFERENCES"Using WordBasic," by WexTech Systems and Microsoft, pages 261, 345 Additional query words: winword2 err resume next word6 macword winword word95 word7
Keywords : |
Last Reviewed: December 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |