Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-29-2015, 01:04 AM
gmayor's Avatar
gmayor gmayor is offline Mail Merge - List clients with different sets of products Windows 7 64bit Mail Merge - List clients with different sets of products Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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
Reply With Quote
 

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
Mail Merge - List clients with different sets of products Grouping list in Mail Merge AlexTeslin Mail Merge 1 03-08-2013 09:31 PM
Mail Merge - List clients with different sets of products 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

Other Forums: Access Forums

All times are GMT -7. The time now is 04:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft