If field code = "*" then paragraph changes

J

jermsalerms79

I am trying to make a mail merge letter that looks at a specified mergefield
and returns specified text based on the field.

For example:

If field code is "lead" then test is "thank you for interest"
If field code is "prospect" then text is "thank you for your application"
If field code is "client" then text is "thank you for business"

Is something like this possible
 
P

Peter Jamieson

{ IF "{ MERGEFIELD myfield }" = "lead" "thank you for (your) interest"
"{ IF "{ MERGEFIELD myfield }" = "prospect" "thank you for your application"
"thank you for (your) business" }" }

All the {} must be the special field codes you can insert using ctrl-F9.

Peter Jamieson
 
C

Charles Kenyon

{ IF "{ MERGEFIELD type }" = "lead" "Thank you for your interest." "" }
Look up IF field in help. The braces cannot be typed in. You have to use
Ctrl-F9 or Insert > Field.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide




--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
J

jermsalerms79

What about doing this with idea with and entire letter. Anotherwords, if
"lead" then the letter (2 - 3 paragraphs and maybe even a table will return.
and if "prospect" then different paragraphs will return with a different
table.

Is this possible?
 
C

Charles Kenyon

Yes, although I would start storing alternatives as AutoText and using
AutoText fields.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide




--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
J

jermsalerms79

Ok...looks like I have some learning to do here. I will try to figure that out
 

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

Top