Microsoft KB Archive/212150

= WD2000: Mail Merge Helper Behaves Differently When You Use a Macro =

Article ID: 212150

Article Last Modified on 11/23/2006

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q212150





SYMPTOMS
When you use a macro command to activate the Mail Merge Helper dialog box, some of the options either are unavailable or are already activated with the use of defaults rather than offering you choices.

For example, when you run the following macro example in a mail merge main document

Sub MyMailMergeHelper Set mydialog = Dialogs(wdDialogMailMergeHelper) With mydialog .Show End With End Sub the following problems may occur:
 * The Create  option does not allow you to select a new main document. The macro automatically changes the active window to the new mail merge main document you selected.
 * The Restore to Normal Word document option does not offer a confirmation dialog box. The macro immediately removes all data file and header file information.
 * The Edit Data Source button opens the data source in View Source mode rather than the Data Form dialog box. To open the file in the Data Form dialog box, click the Data Form button on the Mail Merge toolbar.



WORKAROUND
To display the Mail Merge Helper while you are in a mail merge main document, do one of the following:
 * On the Tools menu, click Mail Merge.

-or-
 * On the Mail Merge toolbar, click Mail Merge Helper.



MORE INFORMATION
The following are descriptions of what Microsoft Word normally does when you click in the Mail Merge Helper. The Mail Merge Helper does not respond normally when you use a macro to display it, and the problems described in the "Symptoms" section of this article may occur.  When you click Create in the Mail Merge Helper dialog box and select a different type of main document, Word prompts you with a message similar to the following to verify the change of document type:

You can change  from form letters to mailing labels or you can create a new main document.

 When you click Create and click Restore to Normal Word Document in the Mail Merge Helper dialog box, Word prompts you with a message similar to the following to verify that you want to revert from the existing document to a normal Word file and break the link to its data source:

By restoring  to a normal Word document, the text from the document will not change. However,  will no longer be a mail merge main document.

Do you want to continue?

 When you click Edit (under Data Source) in the Mail Merge Helper and then select the attached data file, Word displays the Data Form dialog box.

Microsoft 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 a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site:

https://partner.microsoft.com/global/30000104

For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

For more information about how to use the sample code in this article, click the article number below to view the article in the Microsoft Knowledge Base:

212536 OFF2000: How to Run Sample Code from Knowledge Base Articles

Keywords: kbmerge kbprb KB212150

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.