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 / April 2004

Tip: Looking for answers? Try searching our database.

Prevent blank lines with conditional if

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carl - 16 Apr 2004 15:24 GMT
If I create my mailmerge without hard returns like this:

«Prefix»«First» LastTitleTitle2OrganizationOrganization2StreetStreet2Street3«City»,
«State» «Zip»

I can prevent blank lines from showing up where there is no value for
the merge code.

But I want to set it up like this with hard returns in the unmerged
document so the address spacing is correctly viewed. Can anyone tell
me how to do this, so if there is no title2, it doesn't put a blank
line in?

«Prefix»«First» Last
Title
Title2
Street
«City», «State»  «Zip»

Thanks in advance for the help!
Carl
Graham Mayor - 17 Apr 2004 08:22 GMT
Your message title suggests the answer. You need to insert a conditional
field. Set up the merge as follows:

?Prefix? ?First? ?Last?
?Title?{IF {Mergefield Title2} <> "" "
{Mergefield Title2}"}
?Street?
?City?, ?State?  ?Zip?

The field boundaries are inserted with CTRL+F9 - toggle the display between
field and content with ALT+F9

Signature

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

     Web site www.gmayor.com
 Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>

> If I create my mailmerge without hard returns like this:
>
[quoted text clipped - 18 lines]
> Thanks in advance for the help!
> Carl

Rate this thread:






 
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.