Article ID: 282588 - View products that this article applies to.
This article was previously published under Q282588
This article has been archived. It is offered "as is" and will no longer be updated.
When you run a recorded macro to create a mail-merge main document for envelopes, the mail-merge main document is not displayed as an envelope main document. For Word 2002 and Word 2003, if you click Main document setup on the Mail Merge toolbar, the document type is displayed as Envelope. For Office Word 2007, if you click Start Mail Merge on the Mailings tab, the document type is displayed as Envelope.
NOTE: This same problem occurs when you run a recorded mail-merge macro for labels.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers 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 requirements.
For EnvelopesTo correct the recorded macro for envelopes, add the following macro code after the MainDocumentType statement:
Your recorded macro code should now appear similar to the following sample recorded macro code:
For LabelsTo correct the recorded macro for labels, add the following macro code after the MainDocumentType statement:
Your recorded macro code should now look similar to the following example recorded macro code:
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Article ID: 282588 - Last Review: February 28, 2014 - Revision: 4.0
Contact us for more help
Connect with Answer Desk for expert help.