User input required when you programmatically attach Outlook contact list in mail merge operation in Word (286842)



The information in this article applies to:

  • Microsoft Office Word 2003
  • Microsoft Word 2002

This article was previously published under Q286842

SYMPTOMS

When you attempt to use Microsoft Visual Basic for Applications (VBA) code to attach a Microsoft Outlook contact list as the data source for a mail merge main document, the operation does not run without user input as expected. Instead, you may be prompted to supply a valid user profile and to select a Contacts list to attach the data source.

CAUSE

This behavior occurs because the SQL statement causes the dialog boxes to appear even though the statement contains all the information that is required to identify the data source.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbbug kbmerge kbnofix KB286842