Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 12-17-2012, 07:05 PM
macropod's Avatar
macropod macropod is offline Addressing families of different sizes Windows 7 64bit Addressing families of different sizes Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,359
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

In a similar vein, the following construction can be used to manage data where one or more related fields (A, B, C, D, E, & F) may or may not be populated.
{MERGEFIELD A}{IF{MERGEFIELD C}= " " " and {MERGEFIELD B}" ", {MERGEFIELD B}{IF{MERGEFIELD D}= " " " and {MERGEFIELD C}" ", {MERGEFIELD C}{IF{MERGEFIELD E}= " " " and {MERGEFIELD D}" ", {MERGEFIELD D}{IF{MERGEFIELD F}= " " " and {MERGEFIELD E}" ", {MERGEFIELD E} and {MERGEFIELD F}"}"}"}"}

Note 1: It is assumed that none of the fields after the first empty one will be populated.

Note 2: The field brace pairs (ie '{ }') for the above example are created in the body of the document via Ctrl-F9 (Cmd-F9 on a Mac) - you can't simply type them or copy & paste them from this message.

Note 3: A macro to convert the above constructions to working fields is available at: http://www.gmayor.com/export_field.htm#TextToField
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Addressing mailing envelopes WildBill Outlook 0 12-29-2011 03:20 PM
Addressing families of different sizes I want to send email to large number of people, with different addressing sanketmlad Outlook 1 10-06-2011 09:32 AM
Wrong default addressing of stationery in Office 2008 for Mac hedgert Word 0 07-23-2010 09:37 PM
Addressing families of different sizes Org Chart box sizes mookeepooh Word 1 11-12-2009 09:11 AM
Outlook 2000 addressing problem speigel Outlook 0 11-08-2006 02:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:04 PM.


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