![]() |
|
#2
|
||||
|
||||
|
On the face of it from your description, this is a simple merge using conditional fields e.g.
{ IF { MERGEFIELD "Product A" } <> "" "Product A : { MERGEFIELD "Product A" }¶" }{ IF { MERGEFIELD "Product B" } <> "" "Product B : { MERGEFIELD "Product B" }¶" }{ IF { MERGEFIELD "Product C" } <> "" "Product C : { MERGEFIELD "Product C" }¶" }{ IF { MERGEFIELD "Product D" } <> "" "Product D : { MERGEFIELD "Product D" }¶" } (the field bracket pairs are inserted with CTRL+F9). Press the enter key at ¶. If there is a value in 'Product A' the field will produce 'Product A : 1%' followed by a paragraph break, otherwise it will do nothing. Similarly the other fields. Modify as required. The only minor proviso relates to the percentage value in the data source. If necessary use a formatting switch to give the correct result - see http://www.gmayor.com/formatting_word_fields.htm
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
| Tags |
| if/then/else, mail merge rule |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to stop including images as attachment (in other e-mail clients)? | TylerSD | Outlook | 0 | 12-05-2014 01:56 PM |
Grouping list in Mail Merge
|
AlexTeslin | Mail Merge | 1 | 03-08-2013 09:31 PM |
Mail Merge Recipients List
|
TanMan | Mail Merge | 1 | 10-13-2011 06:36 PM |
| How to add to list of Style Sets | oscarsonthepond | Word | 3 | 09-20-2011 03:15 PM |
| Personal folders of clients disappeared after changing mail server | asiri85 | Outlook | 4 | 05-14-2011 06:15 PM |