The information in this article applies to:
SYMPTOMS
You cannot suppress Word error messages using the WordBasic On Error, Err,
and Error statements.
STATUSThis problem was corrected in Word 97 for Windows and Word 98 Macintosh Edition. MORE INFORMATIONError messages numbered 1001 and higher are Word error messages. An error message box appears when a Word error occurs, regardless of whether your macro contains error-trapping statements. For example:
The WordBasic On Error statement does not keep Word error message number
1078 from appearing. To avoid Word error messages, your macro must prevent
the error situation from occurring. In the case of opening a file that
doesn't exist, you could change the macro to check whether the file exists
before it tries to open the file. For example:
Note: The Files$ command will return a null string ("") if the specified
file is not found.
REFERENCES
"Microsoft Word Developer's Kit," for version 6.0, pages 833-834
Additional query words: err on error
Keywords : kberrmsg kbmacro kbdtacode kbmacroexample winword macword word7 word95 |
Last Reviewed: October 19, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |