Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I skip blank fields in mail merge | Mailmerge | |||
Mail merge and blank fields | Mailmerge | |||
How do I suppress printing blank fields in a mail merge? | Microsoft Word Help | |||
omit blank mail merge fields | Mailmerge | |||
In mail merge I don't want to print blank fields | Mailmerge |