Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
ADD A WATERMARK TO A TEXT BOX | Microsoft Word Help | |||
manipulating/cutting/pasting text out of a text box | Microsoft Word Help | |||
Wandering text box | Microsoft Word Help | |||
Way to hide text without hidden text font? | Microsoft Word Help | |||
How can I delete all blank lines from a plain text file? | Page Layout |