Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
jermsalerms79
 
Posts: n/a
Default If field code = "*" then paragraph changes

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
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
 
Posts: n/a
Default If field code = "*" then paragraph changes

{ 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
"jermsalerms79" wrote in message
news
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


  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Charles Kenyon
 
Posts: n/a
Default If field code = "*" then paragraph changes

{ 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

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!

My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
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.


"jermsalerms79" wrote in message
news
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


  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
jermsalerms79
 
Posts: n/a
Default If field code = "*" then paragraph changes

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?

"Charles Kenyon" wrote:

{ 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

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!

My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
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.


"jermsalerms79" wrote in message
news
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




  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Charles Kenyon
 
Posts: n/a
Default If field code = "*" then paragraph changes

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

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!

My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
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.


"jermsalerms79" wrote in message
...
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?

"Charles Kenyon" wrote:

{ 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

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!

My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
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.


"jermsalerms79" wrote in
message
news
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








  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
jermsalerms79
 
Posts: n/a
Default If field code = "*" then paragraph changes

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

"Charles Kenyon" wrote:

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

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!

My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
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.


"jermsalerms79" wrote in message
...
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?

"Charles Kenyon" wrote:

{ 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

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!

My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
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.


"jermsalerms79" wrote in
message
news 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






Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2003 Field code within a field code Cheryl Mailmerge 2 November 25th 05 08:31 AM
Formatting merge fields: inserting a paragraph mark before a field Justin Cascio Mailmerge 1 August 30th 05 08:18 PM
How do I replace 1 character with another in field code results? AWordInNeed Microsoft Word Help 4 August 29th 05 11:19 PM
field code: lastsavedby Kimmie B Microsoft Word Help 1 May 22nd 05 08:02 AM
How do I use the PRINT field code to ... Dave Microsoft Word Help 3 December 13th 04 03:06 PM


All times are GMT +1. The time now is 04:50 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"