Thread: [Solved] Skip Pages in a Mail Merge
View Single Post
 
Old 06-02-2016, 05:40 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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

Yes - simply insert the conditional content into IF fields, one for each condition. For example:

{IF{MERGEFIELD Invite_NMA}<> "" "Invite_NMA Letter"}
{IF{MERGEFIELD Invite_SALT}<> "" "Invite_SALT Letter"}
{IF{MERGEFIELD Invite_Annual}<> "" "Invite_Annual Letter"}
or:
{IF«Invite_NMA»<> "" "Invite_NMA Letter"}
{IF«Invite_SALT»<> "" "Invite_SALT Letter"}
{IF«Invite_Annual»<> "" "Invite_Annual Letter"}
including the page breaks within each field, though you'd put the fields themselves all end-to-end without line breaks.


Note: The field brace pairs (i.e. '{ }') for the above example 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 practical to add them via any of the standard Word dialogues. Likewise, you can't type or copy & paste the chevrons (i.e. '« »') - they're part of the actual mergefields, which you can insert from the 'Insert Merge Field' dropdown. The spaces represented in the field construction are all required.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote