The information in this article applies to:
SYMPTOMSWhen you use a Microsoft WordBasic Goto statement within a Case instruction, the following WordBasic error may result: This error occurs if the Goto statement jumps out of the Case instruction before running an End Select statement. WORKAROUND
To work around this error, add an additional End Select statement below the
Goto label or place the Goto statement outside of the Case instruction.
STATUSMicrosoft has confirmed this to be a problem in the versions of Microsoft Word listed at the beginning of this article. This problem was corrected in Word 97 for Windows and Word 98 Macintosh Edition. MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/supportnet/refguide/ ExampleThe following sample macro includes a Goto statement within the Case instructions and thus results in a "SELECT without END SELECT" error.
Example WorkaroundsMove the Goto statement outside of the Case instructions, as in the following sample macros:
Add an additional End Select statement after the Goto label, as in the
following macro sample:
REFERENCES"Using WordBasic" by WexTech Systems, Inc. and Microsoft Corporation, Microsoft Press, 1992, page 275. Additional query words: error 130 winword2 8.0 8.00
Keywords : kbmacro wordnt word8 winword ntword macword word6 word7 word95 |
Last Reviewed: December 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |