Suppress Blank Lines in a mail merge

Anonymous
2010-09-17T14:37:31+00:00

Using Word 2007, I am creating a mail merge. Some addresses have one line, some have two (Suite number, etc.) I want to suppress the second address field only if it is blank, so there are no blank lines in the document after I perform the merge. In older versions of Word, I remember a check box for "suppress blank fields" but I can't seem to find that in 2007.

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Suzanne S Barnhill 279.4K Reputation points MVP Volunteer Moderator
2010-09-17T14:59:46+00:00

In general, blank lines are automatically suppressed, but only if they end in a paragraph break, not a line break. Consequently, the default is not a solution for me and perhaps not for you, either. So you have to use an IF field. Assuming your two address lines are the merge fields Address1 and Address2, you'd have something like this.

{ MERGEFIELD Address1 }<line break>

{ IF { MERGEFIELD Address2 } = "" "" "{MERGEFIELD ADDRESS2}<line break>" }

The way that will actually appear in your document is:

{ MERGEFIELD Address1 }

{ IF { MERGEFIELD Address2 } = "" "" "{MERGEFIELD ADDRESS2}

" }

By putting the line break inside the FalseText quotes, you ensure that thereis a line break only if the line contains text; otherwise, there will be no line.

Was this answer helpful?

10+ people found this answer helpful.
0 comments No comments

49 additional answers

Sort by: Newest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Anonymous
    2011-09-09T20:29:17+00:00

    I've been using Mail Merge in Word 2003 for years.

    This occurs when making Labels to stick on envelopes for mailing.

    If you Merge it with an Excel File which contains a list of addresses (one column being "Address 1" and another "Address 2") -- some people will not have any data in the column "Address 2".

    So it will/should merge like this Example:

    Bob Smith

    123 Main Street

    Smallville, NY 12345

    Others WILL have data in the "Address 2" column and it will merge like this:

    Mary Jones

    Pennville Village

    321 Oak Lane

    Smallville, NY 12345

    However, Word 2010 will Merge the first example WITHOUT suppressing the blank field (empty line) so it shows up like this after being merged:

    Bob Smith

    123 Main Street

    Smallville, NY 12345

    You are right, I had to "revert" back to Word 2003 for this to Merge correctly - which is ridiculous - WHY install Word 2010 if you have to "revert" back to a previous version for something to work CORRECTLY? Why not simply have an option (check box) that says "suppress blank fields"?

    The whole "DEFAULT" to "html spacing" is ridiculous throughout all of Word 2010! 

    I'm not setting up a webpage - I'm typing a business letter/important documents. 

    If I WANT an extra line inserted, I'll INSERT one.

    Had my company not recently installed Word 2010 on our computers, I would have stuck to Word 2003.

    Don't get me wrong – I'm not opposed to changing things to make them better, more efficient.  What I don't understand is they change them to a point where you have to learn everything all over again!

    I've been using Word & Excel for years and know hundreds of tricks and short cuts – but because everything is so different and in different places, I have to re-learn how to do it or figure out WHERE it is!  I have enough work as it is for my job – besides having to re-learn everything again for Microsoft! (unless Microsoft wants to cut me a paycheck!)

    Things/short-cuts that made me more productive, are now in different places, and I have become less productive.

    I just don't get it.  Making things easier – yes; but changing them so I don't recognize it anymore?

    The Toolbars were great – everything I needed was right there in front of me…now I find myself searching among the tabs of the ribbon just to find basic things….yes, I know I can "customize" the ribbon, but that only puts more tabs up there.

    I'm working harder using something that supposedly was going to make things "better".

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  3. Suzanne S Barnhill 279.4K Reputation points MVP Volunteer Moderator
    2011-09-09T15:06:25+00:00

    This is a different issue. If you need to change line spacing in a paragraph, you need to do so through the Paragraph dialog. Alternatively, there is a Line and Paragraph Spacing button in the Paragraph group on the Home tab and a Paragraph Spacing menu accessed via the Change Styles button in the Styles group.

    All versions of Word beginning with Word 2000 have defaulted to HTML paragraph spacing (a Compatibility Option setting), but that applies only to treatment of Spacing Before and After. What you are describing, I think, is the default paragraph spacing of the Normal style in Word 2007 and 2010, which is 1.15 line spacing, plus 10 points Spacing After. You do not need to use this; you can change the paragraph spacing and set the change as the default; you can even revert to Word 2003 styles entirely using Change Styles.

    But none of this has anything to do with how mail merge handles blank lines.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2011-09-09T13:24:35+00:00

    "In general, blank lines are automatically suppressed, but only if they end in a paragraph break, not a line break. "

    NOT TRUE!!!!

    Yes, this USED to work in Word 2003 - but does NOT in Word 2010!

    They've really messed up ALL the line spacing throughout Word 2010 - it DEFAULTS to HTML spacing!

    Instead of all that junk up above to make it "suppress blank lines" why not a simple Check Box or something that says "Suppress Blank Lines"?

    Why are they making things MORE difficult?

    Was this answer helpful?

    0 comments No comments