Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Setting merge rules

From: Word 2007: Creating Envelopes and Labels

Video: Setting merge rules

Whenever you perform a Mail Merge in Word 2007, you have the ability to set up rules. For example, if you're merging a list of names and addresses to an envelope file, you may want the Address block to appear differently, depending on the country it's going to. Or if you want to be able to skip records, you can do that too by setting up a rule. Let's use this file called TTEnvelope. You'll find it in your Exercise Files, already linked to our Recipient List. So, when you go to open it, you will be prompted to link that file by clicking the Yes button.

Setting merge rules

Whenever you perform a Mail Merge in Word 2007, you have the ability to set up rules. For example, if you're merging a list of names and addresses to an envelope file, you may want the Address block to appear differently, depending on the country it's going to. Or if you want to be able to skip records, you can do that too by setting up a rule. Let's use this file called TTEnvelope. You'll find it in your Exercise Files, already linked to our Recipient List. So, when you go to open it, you will be prompted to link that file by clicking the Yes button.

Once you've got it open, we'll go up to the Mailings tab on the Ribbon and explore the different rules by clicking the Rules button, which is a dropdown. There are many different types of rules that can be added. For example, if you want to be prompting people to input information, you could do that. It doesn't really apply to an envelope. You could show the Merge Record# somewhere on the envelope if you wanted to. The actual number of that person on the recipient list will appear here. Or just skip to records. But down at the bottom, you can choose to skip over a record if a certain condition is met.

So let's choose that one first. Now, in this case, we get to choose the field name. Let's say if the recipient does not have a Company Name, we want to skip over them. We only want envelopes for people who actually have a Company Name in their Address, so we can send it off to that company. Well in this case, we choose the field by clicking the dropdown. We'll choose Company_Name, not Equal to, so we'll click the dropdown and choose something different like, 'is blank.' There we go. We don't need the Compare to field, because it's going to be blank anyway. At the top, notice we are going to be skipping the record if the company name is blank.

I'll click ok. That code appears where our flashing cursor was in the top left corner of the envelope. That's fine. It won't print out. But the end result is going to be, we are only going to see a list of records or envelopes for people with Company Names. Now, right now, if we click Preview Results, we're going to see everybody. Notice we can use our navigation buttons to go through the many, many records we have, whether they have a Company Name or not. So the rule actually isn't enforced until we Finish and Merge, so we'll click that button at the end.

And if we want to see the envelopes, we'll choose Edit Individual Documents. Let's do that. So, we are going to merge all the records using our rule and click ok. Notice, also, at the top of your screen, on the title bar, that a new document has been created here, and Word has automatically named it. You'll see letters and a number following that and this is a document if you wanted to keep, you would need to save. Notice down at the bottom left-hand corner on the status bar, there's only four. And as we scroll through the various envelopes or pages in this document, you will notice each of the address blocks, these people have a Company Name.

If there is no company name, the record was skipped, and we are left with four envelopes, which we could save, print off, whatever you need to do. We are just going to go to the Office button and Close without saving, so that we can do this merge at any other time. We are back to our original envelope file. Let's turn the Preview Results off, so we can see the codes, including the code we've just added in the top left corner. Now, don't click anywhere. Just press your Delete key on the keyboard, which highlights the entire rule that we've entered, and Press Delete again to remove it, so it's gone.

Let's try a different type of rule this time. We know that, in the US, the ZIP code goes right after State on the same line. In Canada, the Postal_Code appears on the next line, so it's a different format. Let's set up a rule to work with that. First, we'll click inside the address block, right after State. So, you are flashing in between the two codes. Now, we'll go up to Rules, and in this case, we're going to use the If...Then...Else rule. Select it. The Field name we are working with, of course, is going to be the country.

Even though it doesn't appear on the envelope, it is the field we want to use in our statement here. So we'll scroll down to Country_or_Region. So, if it's not equal to, we'll change the comparison to Not Equal To, and in the Compare to field type in 'U.S.A,' then what? Well then, we want to insert a hard return, so that's an extra line. So, we click where it says Insert This Text, and hold down your Shift key when you press Return, because you don't want a new paragraph.

You just want a new line. You can see there's a new blank line inserted there. Now, if it is the U.S. so otherwise, we don't want to do anything, just leave it as it is. We'll leave that field blank and click OK. This does apply to our preview. Let's click the Preview Results, and you'll see there is a title or an address with the ZIP code. And as we move through these, let me get to one that's Canadian with a postal code. It does appear on the next line. So anything that's a US address, you can see the ZIP code is appearing right there on the same line.

Canadian addresses show the postal code on the next line. So, thanks to the rule, we're able to set this up. Now, we would just finish our merge. Let's again choose Edit Individual Documents and click OK. Now you can see the end result as we scroll through the various envelopes. So remember, if you need to make adjustments and you want full control over how your merged results behave, remember to use those rules. There are many to choose from.

So experiment with them, finding the rule that suits your needs.

Show transcript

This video is part of

Image for Word 2007: Creating Envelopes and Labels
Word 2007: Creating Envelopes and Labels

40 video lessons · 5644 viewers

David Rivers
Author

 
Expand all | Collapse all
  1. 6m 57s
    1. Welcome
      1m 6s
    2. Prerequisites and requirements before you begin
      2m 57s
    3. Goals and expectations for this course
      1m 20s
    4. Using the exercise files
      1m 34s
  2. 21m 13s
    1. Setting up a return address
      3m 3s
    2. Printing a single envelope
      4m 18s
    3. Adding an envelope to your document
      2m 20s
    4. Create envelopes from a template
      2m 32s
    5. Printing a single label
      2m 40s
    6. Printing a sheet of the same label
      2m 22s
    7. Creating labels from a template
      3m 58s
  3. 19m 36s
    1. Creating and selecting recipient lists in Word
      8m 41s
    2. Using an Excel workbook as a recipient list
      3m 23s
    3. Editing a recipient list in Word
      5m 53s
    4. Using Outlook contacts as a recipient list
      1m 39s
  4. 36m 6s
    1. Envelopes and the Mail Merge wizard
      7m 12s
    2. Inserting merge fields
      4m 33s
    3. Setting merge rules
      5m 49s
    4. Matching fields
      5m 57s
    5. Formatting envelopes before merging
      4m 58s
    6. Adding graphics to envelopes
      2m 39s
    7. Saving and reusing envelope files
      1m 46s
    8. Using print options with merged envelopes
      3m 12s
  5. 30m 32s
    1. Labels and the Mail Merge wizard
      6m 19s
    2. Manually merging labels with recipients
      5m 57s
    3. Setting merge rules
      3m 11s
    4. Formatting labels before merging
      4m 18s
    5. Adding graphics to labels
      3m 28s
    6. Reusing existing label files
      2m 29s
    7. Printing merged labels
      4m 50s
  6. 16m 14s
    1. Signing up with an e-postage service
      3m 29s
    2. Printing postage on a single envelope
      4m 42s
    3. Printing postage in a mail merge
      2m 57s
    4. Printing postage with labels
      5m 6s
  7. 25m 57s
    1. Dealing with irregular envelopes
      3m 36s
    2. Dealing with irregular labels
      5m 38s
    3. Preventing text from printing too close to the edge of a label
      4m 42s
    4. Creating business cards
      5m 3s
    5. Creating postcards
      6m 58s
  8. 19s
    1. Goodbye
      19s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Word 2007: Creating Envelopes and Labels.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.