ID: Q116229
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.
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).
Edit the macro to include the .LabelAutoText argument.
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 : kbmacro winword macword word6 word7 word95
Version : 6.00 6.00a 6.00c 7.00 | 6.00 6
Platform : MACINTOSH WINDOWS
Last Reviewed: November 18, 1997