How to include quotes inside bookmarks

R

Rey

I want to be able to add a quote symbol within a quoted filed code. For
example {Set MyText "This is my name "Rey""} Then later use {Ref MyText} and
get This is my name "Rey"
I tried {Set MyText "This is my name {SYMBOL 34 \a}Rey{SYMBOL 34 \a}"} but
it does not work. Anyone has any idea of how to do this?
 
R

Rey

Thank you very much. It did the trick with a little enhancement on my part to
cover a case I had oversimplified in my question. Here is the more general
one.
{ Set MyText { Quote " This is my name { Quote 34 "Rey Smith" 34 }} whether
you like it or not"}
Note the quotes in the inner quote to include a whole string with blanks, etc.
 
D

Doug Robbins - Word MVP

Hi Greg,

That would need to be:

{ Set MyText { Quote " This is my name { Quote 34 }Rey{ Quote 34 }" } }

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
R

Rey

I agree both ways work and so does th ethird one I shared and actually used.
Incidentally, the reason we have these three ways, I think, is that
documetation for fieldcode QUOTE is not very good. And that is an
understatement.
 

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

Similar Threads


Top