When you need to send two or more different letters to your clients based on a value in a field in the client database, you don't need to compile two separate mailing lists. Using the If... Then...Else rule with the INCLUDETEXT field, you can process both letters at once. For example, say you have saved two documents, one containing the body of the letter for clients located in Missouri and a second containing the body of the letter for clients located in Illinois. To create one mailing that will send the appropriate letter to each client, follow these steps:
- Open your mail merge document, which contains the merge fields and text common to both letters.
- Click below the greeting, where you want to insert the body of your letter.
- Click the drop-down arrow of the Insert Word Field button in the Mail Merge toolbar. (In Word 2007, click Rules in the Write & Insert Fields group of the Mailings tab.)
- Click If...Then...Else.
- Click the Field Name box drop-down arrow and select State (Figure A).
- Click in the Comparison box and select Equal To.
- Click in the Compare To box and type MO.
- Click in the Insert This Text box and type This is the text for MO.
- In the Otherwise Insert This Text box, type This is the text for IL.
- Click OK.
- Right-click the field in the document and select Toggle Field Codes to display all the field codes (Figure B).
- Select the following text inside the quotes: This is the text for MO. (Do not select the quotes.)
- Go to Insert | Field. (In Word 2007, click Quick Parts in the Text Group of the Insert tab.)
- Click Field.
- Under Field Names, select IncludeText (Figure C).
- Click in the Filename Or URL box and type the full pathname for the file containing the body of the letter for Missouri clients.
- Click OK.
- Right-click the field and select Toggle Field Codes.
- Select the following text inside the quotes: This is the text for IL. (Again, do not select the quotes.)
- Repeat steps 13 through 15.
- Click in the Filename Or URL box and type the full pathname for the file containing the body of the letter for the Illinois clients.
- Click OK.
Note that you can use the If ...Then... Else rule with INCLUDETEXT to print out different letters for any number of values in the field. Simply create a different If...Then...Else rule for each value, with INCLUDETEXT as the first variable and blank (nothing between the quotes) for the second variable.
Miss a Word tip?
Check out the Microsoft Word archive and catch up on other Word tips.
Help users increase productivity by automatically signing up for TechRepublic's free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.