Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Deejay Deejay is offline
external usenet poster
 
Posts: 52
Default Shrink blank fields in mail merge

How do I shrink blank lines in a mail merge. Typically one contact may have a
2 line address and another has a 3 line address. How do I ensure that the 2
line address contact doesn't have a blank line before the town/city line? I
know it can be done in Access but can it be done in Word?

Thanks.
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Shrink blank fields in mail merge

The simplest way which works under all circumstances is to use a series of
conditional fields to insert the line feeds and the mergefields only when
there is data in them eg

{Mergefield fieldname1}{IF {Mergefield fieldname2} "" "
{Mergefield fieldname2} "}{IF {Mergefield fieldname3} "" "
{Mergefield fieldname3} "}{IF {Mergefield fieldname4} "" "
{Mergefield fieldname4} "}

Change the fieldnames as appropriate to your data. All the bracket pairs {}
are inserted with CTRL+F9 and the only line feeds and spaces are placed
where shown.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Deejay wrote:
How do I shrink blank lines in a mail merge. Typically one contact
may have a 2 line address and another has a 3 line address. How do I
ensure that the 2 line address contact doesn't have a blank line
before the town/city line? I know it can be done in Access but can it
be done in Word?

Thanks.



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I skip blank fields in mail merge Julia Mailmerge 4 April 21st 23 12:06 PM
Mail merge and blank fields Lely Mailmerge 2 February 10th 06 02:24 PM
How do I suppress printing blank fields in a mail merge? nvlo Microsoft Word Help 1 January 18th 06 12:15 AM
omit blank mail merge fields gapkid Mailmerge 2 October 20th 05 07:19 AM
In mail merge I don't want to print blank fields Richard Mailmerge 7 July 11th 05 03:45 PM


All times are GMT +1. The time now is 07:04 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"