Select recipients
To merge information into your main document, you must connect the document to a data source, or a data file. If you don't already have a data file, you can create one during the mail merge process.
Choose a data file
- On the
Mailings
tab, in theStart Mail Merge
group, clickSelect Recipients
. - Do one of the following:
- If you want to use your Contacts list in Outlook, click
Select from Outlook Contacts
.Tips for working with Microsoft Outlook Contacts list
Connecting to your Outlook Contacts folder is usually a straightforward process, but sometimes you may encounter a problem. Here are solutions to common problems that you may encounter:
- I can't find my Outlook Contacts folder to connect to it.
- I get error messages about mail clients and tables.
- I can't connect to an Outlook Contacts folder in Public Folders.
- I want to use my Outlook Express address book as my Contacts folder, but I can't connect to it.
I can't find my Outlook Contacts folder
You may need to turn on the
Show this folder as an e-mail Address Book
property in Outlook, or you may need to change your Outlook user profile.Turn on the Show this folder as an e-mail Address Book property
- In Microsoft Office Outlook, on the
Go
menu, clickContacts
. - Right-click the
Contacts
folder that contains the information that you want to use for a mail merge, and then clickProperties
.
- On the
Outlook Address Book
tab, make sure that theShow this folder as an e-mail Address Book
check box is selected, and then clickOK
.
Change your Outlook user profile
An Outlook user profile is a group of e-mail accounts and address books. Usually, you need only one profile - but if you share your computer with other people or use different address books for different purposes, you can set up more than one profile. If, when you start your mail merge, you're using a profile that doesn't include the Contacts folder that you want to use, that folder won't be available.
To switch to a different user profile, restart Outlook. When you're prompted for a profile, choose the profile that includes the Contacts folder that you want to use in the mail merge.
If you aren't prompted for a profile and you know that you have more than one, you may want to set up Outlook so that it prompts you. To do this:
- Close Outlook.
- In Control Panel, switch to Classic View, and then click
Mail
. - Click
Show Profiles
. - To be prompted to select a profile each time you start Outlook, click
Prompt for a profile to be used
, and then clickOK
.
Back to Outlook tipsI get error messages about mail clients and tables
If you try to connect to your Contacts folder during a mail merge in Word, and Outlook is not set up as your default e-mail program in Windows Internet Explorer, you will get an error message that says:
"Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Office Outlook, and set it as the default mail client."
To avoid getting this message during a mail merge, do the following:
- Exit Word.
- On the Internet Explorer
Tools
menu, clickInternet Options
, and then click thePrograms
tab. - Under
E-mail
, clickMicrosoft Office Outlook
, and then clickOK
.
Start Word again, open your mail merge document, and connect to your Outlook Contacts folder.Back to Outlook tips
I can't connect to an Outlook Contacts folder in Public Folders
If you start a mail merge in Word and try to connect to an Outlook Contacts folder in
Public Folders
, you get an error message that says:"The operation cannot be completed because of dialog or database engine failures. Please try again later."
If you try again later, you get the same error message.
To use a Public Folders Contacts folder as the data file for your mail merge, you have to start the mail merge from within Outlook.Back to Outlook tips
I want to use my Outlook Express address book as my Contacts folder
You can't connect to this type of address book directly during a merge. Instead, export your Outlook Express address book as a .csv text file and then connect to it in that form.
Export your Outlook Express address book:
- Start Microsoft Outlook Express.
- On the
File
menu, point toExport
, and then clickAddress Book
. - In the
Address Book Export Tool
dialog box, clickText File (Comma Separated Values)
, and then clickExport
. - In the
Save exported file as
box, type a file name for your exported file, and then clickBrowse
. - In the
Save As
dialog box, in theSave in
list, choose where you want to save the file, and then clickSave
. It's handy to save data files in theMy Data Sources
folder in yourMy Documents
folder. That's where Word looks first for data files when you browse for them during a merge. - Click
Next
. Select the check boxes next to the fields that you want to export, and then clickFinish
.Note When you are deciding which fields to export, think about the form letters or e-mail messages or labels that you intend to create with mail merge. For example, if you never include nicknames or personal Web sites in your merged documents, don't export those fields.
- When you receive the message that the export procedure is completed, click
OK
. - To close the
Address Book Export Tool
dialog box, clickClose
, and then exit Outlook Express.
When you're back in Word performing your mail merge and you come to the step where you connect to a data file, click the
Use an existing list
option, and browse to locate the .csv file that you just exported. Before the file opens, you may be asked to select which separator character will separate one column from another in your address list. ClickComma
, and then clickOK
.Back to Outlook tips - If you have a Microsoft Office Excel worksheet, a Microsoft Office Access database, or another type of data file, click
Use Existing List
, and then locate the file in theSelect Data Source
dialog box.For Excel, you can select data from any worksheet or named range within a workbook. For Access, you can select data from any table or query that is defined in the database. For another type of data file, select the file in the
Select Data Source
dialog box. If the file is not listed, select the appropriate file type or selectAll Files
in theFiles of type
box. In a mail merge, you can use the following types of data files:- Files from single-tier, file-based database programs for which you have installed an OLE DB provider or ODBC driver (a number of which are included with Microsoft Office).
- An HTML file that has a single table. The first row of the table must contain column names, and the other rows must contain data.
- Electronic address books:
- Microsoft Outlook Address Book
- Microsoft Schedule+ 7.0 Contact List
- Any similar address lists that were created with a MAPI -compatible messaging system, such as Microsoft Outlook.
- A Microsoft Word document. The document should contain a single table. The first row of the table must contain headings, and the other rows must contain the records that you want to merge. You can also use a header source as a data source.
- Any text file that has data fields separated (or delimited) by tab characters or commas and data records separated by paragraph marks.
Tips for formatting data in Excel
If your data file is an Excel worksheet that includes percentages, currency values, or postal codes, you can preserve the numeric formatting of the data by using Dynamic Data Exchange to connect to the Excel worksheet from Word. For example, you can make sure a five-digit postal code of 07865 from your data file is not displayed as the number 7865 (without the leading zero).
Before you connect to the worksheet, do the following in Word:
- Click the
Microsoft Office Button
, and then click
Word Options
. - Click
Advanced
. - Scroll to the
General
section, and select theConfirm file format conversion on open
check box. - Click
OK
. - With the mail merge main document open, in the
Start Mail Merge
group of theMailings
tab, clickSelect Recipients
, and then clickUse Existing List
. - Locate the Excel worksheet in the
Select Data Source
dialog box, and double-click it. - In the
Confirm Data Source
dialog box, clickMS Excel Worksheets via DDE (*.xls)
, and then clickOK
.Note If you don't see
MS Excel Worksheets via DDE (*.xls)
, select theShow all
check box. - In the
Microsoft Office Excel
dialog box, forNamed or cell range
, select the cell range or worksheet that contains the information that you want to merge, and then clickOK
.Note To prevent being prompted every time you open a data file, you can turn off the
Confirm conversion at Open
option after you have connected to the worksheet.
- If you don't have a data file yet, click
Type a new list
, and then use the form that opens to create your list. The list is saved as a database (.mdb) file that you can reuse.
- If you want to use your Contacts list in Outlook, click
Note If you installed Microsoft Office system (instead of installing Microsoft Word by itself), you can also use Microsoft Query to construct a query and retrieve the data you want from an external data source .