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 2005

Tip: Looking for answers? Try searching our database.

bypassing empty merge fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin Post - 20 Apr 2005 02:03 GMT
Hello,

I got a mailmerge with an excel document to make labels, like:

«MrMs» «Firsname» «Lastname»

The problem is when the first name is not mentioned it leaves a extra blank
space on the label, like:

Mr.  Smith, instead of:
Mr. Smit

Is there a function to ignore field Firsname if it's empty?

Thanks in advance,

Martin
Peter Jamieson - 20 Apr 2005 08:26 GMT
use an IF field, e.g.

{ MERGEFIELD MrMs } { IF { MERGEFIELD Firstname } = ""
"" " { MERGEFIELD Firstname }" }{ MERGEFIELD Lastname }

All the {} need to be the special field codes you can insert using ctrl-F9.

Peter Jamieson
> Hello,
>
[quoted text clipped - 14 lines]
>
> Martin
 
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.