Is there a way to conditionally insert text containing quotes (chr

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to set up a mailmerge word document that will conditionally print
one of ten messages depending upon the addressee's state residence (included
in the mailmerge data). Each of the messages include multiple works which
must be surrounded by quote marks - Chr(34). The quote marks are legally
required to be included in the text (a legislative act in each state would be
required to remove my need to include the quote marks)
 
Define each of your ten messages as an Aututext entry. Then where you
conditionally print your message, replace the literal text with an autotext
field.
 
Hi =?Utf-8?B?Q2hhcmxpZQ==?=,
I'm trying to set up a mailmerge word document that will conditionally print
one of ten messages depending upon the addressee's state residence (included
in the mailmerge data). Each of the messages include multiple works which
must be surrounded by quote marks - Chr(34). The quote marks are legally
required to be included in the text (a legislative act in each state would be
required to remove my need to include the quote marks)
Try preceding the quote marks with a backslash: \"

In some versions of Word, this doesn't work for the closing quote (the backslash
is visible). But often, using a QUOTE field will give the proper result:
{ Quote \"tesT\"}

{ IF x = x "{ Quote \"tesT\"}" "no test" }

Or, possibly, you can use two apostrophes: ''

Another possibility would be to substitute a different symbol for the usual
quotes.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 
I like the AutoText field idea, too, as it gets around all sorts of
problems.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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