Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / June 2007

Tip: Looking for answers? Try searching our database.

Shrink blank fields in mail merge

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Deejay - 13 Jun 2007 20:21 GMT
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.
Graham Mayor - 14 Jun 2007 07:02 GMT
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.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

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

> 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
[quoted text clipped - 3 lines]
>
> Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.