Undocumented .LabelAutoText Argument for ToolsCreateEnvelope

Last reviewed: November 17, 1997
Article ID: Q116229

The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, version 7.0
  • Word for the Macintosh, versions 6.0, 6.0.1

SYMPTOMS

If you manually create a macro to perform a mail merge to create envelopes and omit the .LabelAutoText argument from the ToolsCreateEnvelope statement, you will receive the following error message:

   Word Basic Err=102
   Command Failed.

CAUSE

When you record the macro to perform the merge steps, the macro will automatically include this argument. However, if you manually create the macro and do not include this argument or if you edit the macro and remove it, then Word will generate the error message.

The syntax for this argument is

   .LabelAutoText = <text>

where <text> is the name of an AutoText entry in which the address fields for a data source are stored (for example, .LabelAutoText = Sales).

WORKAROUND

Edit the macro to include the .LabelAutoText argument.

MORE INFORMATION

The .LabelAutoText argument is not documented in the Word Developer's Kit, first edition, but is referred to in online Help. To locate this information, choose Contents from the Help menu, select Programming with Microsoft Word, choose Statements And Functions Index, and select ToolsCreateEnvelope. .LabelAutoText argument was added to the Word Developer's Kit, second edition, page 749.


Additional query words: wordbasic LabelAutoText undocumented command failed
merge envelope
Keywords : macword winword word6 word7 word95 kbmacro
Version : 6.00 6.00a 6.00c 7.00 | 6.00 6
Platform : MACINTOSH WINDOWS


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: November 17, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.