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

Tip: Looking for answers? Try searching our database.

Display text if a group of mergefields are blank

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cjg.groups@gmail.com - 11 Aug 2006 00:01 GMT
Hello,

I have a group of mergefields which may or may not contain data when
merged.  Is it possible to show alternate text if every mergefield in
the group is blank?

It seems inefficient to use an IF statement to check if each field is
blank, then access each field again to be displayed.  Is there an
analog to the mergefield \f and \b switches which show text when the
field is empty?  Could I place all mergefields inside a field and use
some special switch?

Thanks in advance!
Cindy M. - 11 Aug 2006 15:17 GMT
> I have a group of mergefields which may or may not contain data when
> merged.  Is it possible to show alternate text if every mergefield in
[quoted text clipped - 5 lines]
> field is empty?  Could I place all mergefields inside a field and use
> some special switch?

My first inclination was to say "Yes, IF field is the way to go". But
on thinking things through, there might be a more efficient way to use
it.

A SET field will let you set a bookmark with content that's not visible
in the document. So:

{ SET FieldTest "{Mergefield X}{Mergefield Y}{Mergefield Z}" }

{ IF { REF FieldTest } = "" "" "{Mergefield X}{Mergefield Y}{Mergefield
Z}" }

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)
 
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.