View Single Post
 
Old 03-02-2014, 03:46 AM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

All that needs is some IF fields to conditionally output the optional data.
For example:
{IF{MERGEFIELD Status1}= "Y" "the table row for Status1 goes here"}
{IF{MERGEFIELD Status2}= "Y" "the table row for Status2 goes here"}
Although this generates a separate physical table for each row, you can minimise the gap by formatting the intervening paragraph spaces (which have to be included in the field code anyway) as hidden. The alternative is to test for all possibilities via IF fields and output a single table having anything from 1 to 3 rows, according to which conditions are met.

Note: The field brace pairs (ie '{ }') for the above examples are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practicable to add them via any of the standard Word dialogues.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote