![]() |
|
#1
|
||||
|
||||
![]() Quote:
{IF{MERGEFIELD Subject}= "Art and Design" "Art and Design text"} {IF{MERGEFIELD Subject}= "Performing Arts" "Performing Arts text"} or: {IF«Subject»= "Art and Design" "Art and Design text"} {IF«Subject»= "Performing Arts" "Performing Arts text"} 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. For mailmerges, you use a mailmerge main document, not a template. Executing the merge produces whatever output (email, printout, or document) you require.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Jamal NUMAN | Excel | 16 | 11-15-2022 11:59 PM |
Mailmerge certain text using multiple if statements | Debs | Mail Merge | 4 | 06-19-2014 03:34 AM |
Multiple If statements | bremen22 | Excel | 2 | 10-15-2013 06:37 AM |
![]() |
m&co | Mail Merge | 3 | 01-06-2012 07:27 PM |
![]() |
imogul | Mail Merge | 1 | 06-24-2011 07:20 PM |