"Use As Default" Causes WordBasic Error in Letter Template

Last reviewed: July 30, 1997
Article ID: Q97857
The information in this article applies to:
  • Microsoft Word for Windows, versions 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c

SUMMARY

You may get one of the following WordBasic error messages while using one of the letter templates supplied with Word for Windows (that is, LETBLOCK.DOT, LETMDSEM.DOT, LETMODBK.DOT, and LETPERSN.DOT):

   WordBASIC Err=102
   Command failed

   WordBASIC Err=124
   Undefined SUB or FUNCTION

   WordBASIC Err=509
   Command Unavailable

These errors occur if:
  • The letter template itself is open.

-and-
  • You have chosen Set Letter Option from the Format menu; chosen Letterhead, Salutation, or Closing; and then chosen Use As Default.

When the error message appears, if you choose OK, the error closes, and the NORMAL.DOT file is left open on the screen. To avoid making any changes to the Normal template, close it and choose No in the dialog box that prompts you to "save global, glossary, and command changes."

Workarounds

If you want to modify a letter template, do one of the following:

  • Make your changes in the open template file, then choose Save from the File menu. Do not choose the Save As Default button.
  • In a document based on the template, choose the Save As Default button. (Keep the template file itself closed.)

Both procedures will save changes to the original template file without generating error messages.

If you want to modify a document based on a template without modifying the template itself, do not choose the Save As Default button.

MORE INFORMATION

These errors occur because one of the Set Letter Options macros tries to save the default setting in the Normal template if the letter template itself is open.

The Save As Default option is designed to let you save a desired change to the letter template itself while you are working in a document based on the template. For this option to work correctly, the letter template itself must be closed.


KBCategory: kbusage
KBSubcategory: kbtemplate
Additional query words: 2.0 2.0a 2.0a-cd 2.0b 2.0c winword2
winword


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.