This article illustrates how to create a new mail merge template.

- Open a new blank document in Microsoft Word 2002, 2003, or 2007.
- Use Word to compose the document so it contains the text, data, and formatting your users require.
- Locate the text or data variables in your Word document that will change each time the template is used. For example, in the salutation “Dear Bob,” “Bob” is a variable because it will change when the letter is sent to a different person.
- Replace each variable with the appropriate Salesforce merge field.
- If you have Connect for Office, you can use Word integration to insert merge fields quickly.
- If you do not have Connect for Office:
- Place your cursor where you want to insert a merge field.
- In Word 2003 and earlier, select Insert and then Field from the Word menu bar. In Word 2007, select the Insert tab on the Ribbon, click Quick Parts in the Text group, and then click Field.
- Select Mail Merge in the Categories drop-down list.
- Select MergeField in the Field names box.
- In the Field Properties area of the Field name box, manually enter the valid Salesforce merge field, such as Opportunity_LineItem_ProductName.
- Click OK.
- Save your Word document.
- Proceed to Uploading Mail Merge Templates to Salesforce.
For Best Results
- Do not configure mail merge templates as “protected” or “restricted access” in Microsoft Word. Please refer to Word's help for information about protected Word documents. (In Word, press F1 to open help.)
- Do not connect mail merge templates to external data sources such as Excel worksheets or Access databases. Please refer to Word's help for information about restoring mail merge documents to what Word calls “normal Word documents.”
For details on how to set up your template with these tips in mind, refer to Guidelines for Uploading Mail Merge Templates.