The information in this article applies to:
SUMMARYWhen you write macros in Microsoft Word, you may need to test for the existence of a style name before modifying or deleting the style. If your macro does not check for the existence of a style before attempting to modify or delete the style, the FormatStyle command may return the following error message:
MORE INFORMATIONThe following WordBasic macro tests for an existing style named "Test." If the style exists, Word deletes the style.
For more information about how to do this in Word 97, please see the
following articles in the Microsoft Knowledge Base:
Q158847 Word 97: Macro To Test For An Existing Style Name REFERENCES"Microsoft Word Developer's Kit," version 6.0, pages 706-707 Additional query words: WordBasic delete style FormatStyle
Keywords : kberrmsg kbmacro kbprg kbdtacode kbmacroexample winword macword word6 word7 word95 |
Last Reviewed: December 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |