Word 2007 Mail Merge

  • Thread starter Thread starter Lora P
  • Start date Start date
L

Lora P

I have 7 different conditional texts for 1 word document. I can only see 1
If then else statement. How do I do multiple if then else's for the same
field to have different text based on a merged field. I can only do the test
one time if this then 'x' else 'p'

Any help at all would be appreciated.
 
1. You can use a nested IF, e.g.

{ IF "{ MERGEFIELD a }" = "a"
"insert thing a"
"{ IF "{ MERGEFIELD a }" = "b"
"insert thing b"
"{ IF "{ MERGEFIELD a }" = "c"
"insert thing c"
"otherwise insert thing d" }" }" }

2. You may obviously need something rather different depending on
exactly what conditions you need.

3. When inserting nested fields, it's generally easier to do it directly
in the document (not using any of the field insertion facilities in
Word's ribbon), using
ctrl-F9 to insert each pair of the special field code braces {}
alt-F9 to toggle between field code view and field results view
F9 to re-evaluate the selected fields

Peter Jamieson

http://tips.pjmsn.me.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top