Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
docs:microsoft_office:word:mail_merge [2007/04/06 13:43] – added preview info billh | docs:microsoft_office:word:mail_merge [2008/08/03 00:25] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Mail Merge ====== | ||
+ | |||
+ | ===== Office 2004 (Mac) ===== | ||
+ | |||
+ | ==== Create the Documents ==== | ||
+ | - //note - keep these documents together in a folder// | ||
+ | - create and save a spreadsheet in Excel, with the first row being column titles for each piece of information you wish to maintain:\\ {{docs: | ||
+ | - create a document in Word, such as a letter that will be sent to each person in the spreadsheet | ||
+ | |||
+ | ==== Add the Mail Merge Fields ==== | ||
+ | |||
+ | - go to Tools -> Data Merge Manager | ||
+ | - in the Data Merge Manager toolbar -> Main Document, click Create -> Form Letters | ||
+ | - in the Data Merge Manager toolbar -> Data Source, click Get Data -> Open Data Source... | ||
+ | - select the Excel spreadsheet you created with the recipient data, and click Open | ||
+ | - when presented with the Open Workbook dialog, " | ||
+ | - in this Word document, find areas where you would like each person' | ||
+ | - in the Data Merge Manager toolbar -> Merge Field, drag and drop any desired fields into the locations you want that particular data to appear in your letter | ||
+ | - you will need to format things as desired for these fields, by selecting a field and choosing your desired font, adding spaces between first/last names, etc...\\ {{docs: | ||
+ | |||
+ | ==== Merging the Data into a Final Document ==== | ||
+ | |||
+ | - in the Data Merge Manager toolbar -> Merge, click the icon to "Merge to New Document" | ||
+ | - you should now have a new document, with all fields automatically filled in by Word, and a page for each recipient | ||
+ | |||
+ | ==== Labels ==== | ||
+ | If you want to print labels rather than creating letters, you do everything the same way except instead of creating "Form Letters," | ||
+ | |||
+ | ==== Advanced - Filtering Data ==== | ||
+ | |||
+ | You have successfully merged data into letters, but what if you want to limit this letter to specific recipients? | ||
+ | - make sure your letter has been saved and is closed | ||
+ | - first, add a column titled CHRISTMAS in your spreadsheet | ||
+ | - place an " | ||
+ | - save your spreadsheet | ||
+ | - open your Word letter again, and click OK at the "Open Workbook Dialog" | ||
+ | - in your Word letter, do everything the same except the final step of Merging the Data into a Final Document: | ||
+ | - in the Data Merge Manager toolbar -> Merge, click "Query Options" | ||
+ | - in the " | ||
+ | - notice that you can add up to six record filters in this tab (you could have an EASTER column, THANKSGIVING, | ||
+ | - note that all filtering rules are applied to this | ||
+ | - if you would like a particular order for your recipients, select the sorting field in the Sort Records tab (such as LAST_NAME, Ascending) | ||
+ | - click OK, and in the Data Merge Manager toolbar -> Merge, click the icon to "Merge to New Document" | ||
+ | - you should now have a page for each letter sent to the filtered recipients | ||
+ | |||
+ | |||
+ | |||
+ | ==== Advanced - Conditional Text ==== | ||
+ | |||
+ | If you want the ability to have conditional text, such as comma with a space between city and state only when you have a city/state, or a line break from address1 only when you have text for address2, then you will need to add a conditional Word field. | ||
+ | * Comma: | ||
+ | - find a place where you want a comma, only when a certain field has data (such as between city and state - don't type a comma or space between them yet) | ||
+ | - your line may look like this: << | ||
+ | - in the Data Merge Manager toolbar -> Word Field, click and drag the " | ||
+ | - when the dialog appears, select the CITY field name, and for the Comparison select "is not blank" | ||
+ | - in the " | ||
+ | - leave the " | ||
+ | - now you should only see a comma and space when the record has a city | ||
+ | * Line Break (a little more complicated, | ||
+ | - find a place where you want a line break, only when a certain field has data (such as after address line 1, only when address line 2 has data) | ||
+ | - your lines may look like this:< | ||
+ | << | ||
+ | << | ||
+ | << | ||
+ | </ | ||
+ | - in the Data Merge Manager toolbar -> Word Field, click and drag the " | ||
+ | - when the dialog appears, select the ADDRESS2 field name (not available from the example above), and for the Comparison select "is not blank" | ||
+ | - in the " | ||
+ | * Why did we type an X? Because pressing return or enter will close this dialog without adding a line break. | ||
+ | - you should see your X between the << | ||
+ | - right click your X, and select " | ||
+ | - you should see your X change to "{ IF ADDRESS1<>"" | ||
+ | - highlight this X and press return, (the return will make a line break replace the X) so your finished work should now look like this:< | ||
+ | << | ||
+ | << | ||
+ | " "" | ||
+ | << | ||
+ | </ | ||
+ | - it might look intimidating, | ||
+ | |||
+ | |||
+ | ==== Advanced - Preview Section of Data Merge Manager ==== | ||
+ | |||
+ | The Mac version of Word has a nice Preview section of the Data Merge Manager toolbar which allows you to see individual records prior to printing or merging into a finished document. | ||