How to use the Mail Merge feature in Word to create and to print form letters that use the data from an Excel worksheet

This article explains how to use the Mail Merge feature in Microsoft Word to create and to print form letters by using data from a Microsoft Excel worksheet.

When you use the Word Mail Merge feature, Word merges a main document with a recipient list to generate a set of output documents:

Step 1: Set Up the Excel Data File

Before you proceed with the Mail Merge Wizard, make sure that your Excel worksheet is well structured for this purpose. Note the following requirements for the data table:

Create your Excel data file, and then arrange it by using the fields that you want to use for your letter, as shown in the following sample data file.

After you create your Excel data file, save it, and then close the data file.

For more information about how to create a mail-merge address list, click the following article number to view the article in the Microsoft Knowledge Base:

294688 How to design and set up a mail merge address list in Word 2002 and in later versions of Word

Step 2: Set Up the Main Document

  1. In Microsoft Office Word 2003 and in earlier versions of Word, point to Letters and Mailings on the Tools menu, and then click Mail Merge Wizard.

  1. Click Start from a template.
  2. Click Select template.
  3. On the Mail Merge tab, select the template that you want in the Select Template dialog box, and then click OK.
  1. Click Start from existing document.
  2. In the Start from existing box, select the document that you want, and then click Open.
  3. If you do not see the document, click More files, and then click Open. In the Open dialog box, locate the document that you want, and then click Open.

Step 3: Specify the Excel Data Source

  1. Under Select recipients, click Use an existing list.
  2. Click Browse.
  3. In the Select Data Source dialog box, locate and then click the Excel worksheet that you want to use.

Step 4: Select the Recipients

  1. In the Mail Merge Recipients dialog box, select the recipients that you want to include. To do this, use one of the following methods:
  2. Use the check boxes to designate recipients.

This method is most useful if the list is short. Click to select the check boxes next to the recipients that you want to include, and then click to clear the check boxes next to the recipients that you want to exclude.

  1. Click the arrow next to the column heading of the element that you want to filter by.
  2. Click any of the following:

Step 5: Complete the Letter and Add Merge Fields

If you have not already done this, type the text that you want to appear in every form letter in the main document.

Insert Merge Fields

Insert merge fields where you want to merge names, addresses, and other information from the data source. To insert merge fields, follow these steps:

  1. In the main document, click where you want to insert the field.
  2. Insert any of the following:
  3. Address block with name, address, and other information:
    1. Click Address block.
    2. In the Insert Address Block dialog box, select the address elements that you want to include and the formats that you want, and then click OK. For help on an option, click the question mark, and then click the option.

    1. Click Greeting line.
    2. Select the greeting line format that includes the salutation, name format, and following punctuation.
    3. Select the text that you want to appear in the cases in which Word cannot interpret the recipient's name. For example, Word cannot interpret the name when the data source contains no first or last name for a recipient, but only a company name.
    4. Click OK.
    5. If the Match Fields dialog box appears, Word may be unable to find some of the information it needs for the greeting line. Click the arrow next to (not available), and then select the field from your data source that corresponds to the field required for the mail merge.

      Click Electronic postage.

    For example, by using the sample database shown earlier, your letter might contain the AddressBlock and GreetingLine fields, and therefore your first page appears similar to the following:

    February 26, 2002

    AddressBlock

    GreetingLine

    Type your letter here.

    Type your name here

    Note You can also use the Mail Merge toolbar to insert merge fields, work with your mail-merge main document, or run a mail merge. To display the Mail Merge toolbar, point to Letters and Mailings on the Tools menu, and then click Show Mail Merge Toolbar.

    The Mail Merge toolbar provides additional commands that are not included in the Mail Merge Wizard task panes. For example, you can use the Insert Word Field menu on the Mail Merge toolbar to insert Word fields for controlling the merge process. For example, you can insert an IF field that inserts text only if a particular merge field has a specified value.

    Alternatively, you can click Check For Errors to make Word run the mail merge and report any errors that are contained in the main document.

    Change the Format of the Merged Data

    To format merged data, you must format the merge fields in the main document. Do not format the data in the data source, because its formatting is not retained when you merge the data into the document. To change the format of the merged data, follow these steps:

    1. In the main document, select the field that contains the information that you want to format, including the enclosing merge field characters (>).
    2. In Word 2003 and in earlier versions of Word, click Font on the Format menu, and then select the options that you want.

    Format by Using Field Codes

    To control other aspects of formatting, press ALT+F9 to display field codes, and then add switches to the merge fields. When you work with fields, a switch is a special instruction that causes a specific action to occur. Generally, a switch is added to a field to modify a result.

    Examples of how to use switches are as follows:

    Step 6: Save the Document

    After you have completed the main document and inserted all the merge fields, make sure that you save the document before proceeding. To do this, follow these steps:

      In Word 2003 and in earlier versions of Word, click Save As on the File menu.

    Step 7: Preview the Letters and Fine-Tune the Recipient List

    When the wizard displays the "Step 5 Mail Merge" task pane, the wizard replaces each of the merge fields in the main document that has the actual text from the first entry of the recipient list.Therefore, you can see how your first output document will look.

    For example, if you were to continue to use the sample database shown earlier, the first page should resemble the following page after you click Next: Preview your letters:

    February 26, 2002

    Andrew Fuller
    908 W. Capital Way
    Tacoma 98401

    Dear Andrew Fuller,

    Type your letter here.

    Type your name here To preview additional entries, use one of the following methods:

    Fine-tune the recipient list if you want. To do this, use one of the following methods:

    Step 8: Complete the Merge

    To complete the merge, use any of the following methods.

    Personalize Individual Letters

    To personalize individual items, you actually complete the merge, and then edit the information that you want in the resulting merged document. To do this, follow these steps:

    1. Click Edit individual letters.
    2. In the Merge to New Document dialog box, select the records that you want to merge.
    3. Click OK.

    Print the Letters

    To print the letters, use one of the following methods:

    1. In Step 6 of the Mail Merge Wizard (Complete the merge), click Print.
    2. In the Merge to Printer dialog box, use one of the following methods, and then click OK:
      • To print all the documents, click All.
      • To print the document that you see in the document window, click Current record.
      • To print a range of documents, click From, and then type the record numbers in the From and To boxes.
    3. In the Print dialog box, select the options that you want.

    Save the Merged Letters for Later Use

    If you want to edit merged letters or to save them for later use, you can collect them into a single document. To do this, follow these steps:

    1. Click Edit individual letters.
    2. In the Merge to a New Document dialog box, use one of the following methods, and then click OK:
      • To merge all the documents, click All.
      • To merge only the document that you see in the document window, click Current record.
      • To merge a range of documents, click From, and then type the record numbers in the From and To boxes.
    3. Word opens a single new document that contains all the individual letters. You can then save the document for later use, just as you would any regular document.

    References

    For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

    318117 How to use addresses from an Excel worksheet to create labels in Word

    318115 How to create a form letter by using information from an Access database in Word 2002

    318112 How to use addresses from an Access 2002 database to create labels in Word 2002

    294686 How to use mail merge to create a list sorted by category in Word 2002 and in later versions of Word

    290408 Frequently asked questions about mail merge in Word 2002

    294688 How to design and set up a mail merge address list in Word 2002 and in later versions of Word

    294693 How to use mail merge to create a directory in Word 2002 and in later versions of Word

    294683 How to use mail merge to create form letters in Word 2002 and in later versions of Word