Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
[email protected] cjg.groups@gmail.com is offline
external usenet poster
 
Posts: 7
Default Display text if a group of mergefields are blank

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!

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default Display text if a group of mergefields are blank

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?

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 :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ADD A WATERMARK TO A TEXT BOX Snoopy Microsoft Word Help 6 April 25th 23 08:50 PM
manipulating/cutting/pasting text out of a text box [email protected] Microsoft Word Help 10 July 9th 06 10:54 PM
Wandering text box Jim K Microsoft Word Help 7 December 24th 05 12:27 AM
Way to hide text without hidden text font? [email protected] Microsoft Word Help 6 December 11th 05 10:53 PM
How can I delete all blank lines from a plain text file? CX Page Layout 7 October 21st 05 10:50 AM


All times are GMT +1. The time now is 01:48 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"