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 / July 2006

Tip: Looking for answers? Try searching our database.

How do I code an If Then Else field when...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Llawler - 31 Jul 2006 20:24 GMT
I'm trying to create address labels through a mail merge and move up
remaining lines if a data field is blank.

For example: Some of the addresses do not include an organization name. If
this is the case, an awkward blank line is left between the name and the
street address.

How do I code it so that the lines move up if the organization field is blank?
Doug Robbins - Word MVP - 31 Jul 2006 20:57 GMT
{ IF { MERGEFIELD Organization }= "" "{ MERGEFIELD Address }" "{ MERGEFIELD
Organization }[line feed]{ MERGEFIELD Address }" }

Use Shift+Enter where [line feed] appears in this construction.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> I'm trying to create address labels through a mail merge and move up
> remaining lines if a data field is blank.
[quoted text clipped - 5 lines]
> How do I code it so that the lines move up if the organization field is
> blank?
Llawler - 31 Jul 2006 21:56 GMT
Thanks for the code, Doug. I thought I knew where it goes, but I'm lost.

Thanks.

> { IF { MERGEFIELD Organization }= "" "{ MERGEFIELD Address }" "{ MERGEFIELD
> Organization }[line feed]{ MERGEFIELD Address }" }
[quoted text clipped - 10 lines]
> > How do I code it so that the lines move up if the organization field is
> > blank?

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.