Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Rey Rey is offline
external usenet poster
 
Posts: 3
Default How to include quotes inside bookmarks

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?
--
Rey
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Greg Maxey Greg Maxey is offline
external usenet poster
 
Posts: 285
Default How to include quotes inside bookmarks

Try:

{ Set MyText { Quote " This is my name { Quote 34 Rey 34 }}"}
--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


Rey wrote:
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?



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Rey Rey is offline
external usenet poster
 
Posts: 3
Default How to include quotes inside bookmarks

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.
--
Rey


"Greg Maxey" wrote:

Try:

{ Set MyText { Quote " This is my name { Quote 34 Rey 34 }}"}
--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


Rey wrote:
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?




  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default How to include quotes inside bookmarks

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

"Greg Maxey" wrote in message
...
Try:

{ Set MyText { Quote " This is my name { Quote 34 Rey 34 }}"}
--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


Rey wrote:
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?





  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Greg Maxey Greg Maxey is offline
external usenet poster
 
Posts: 285
Default How to include quotes inside bookmarks

Doug, either way appears to work equally well for me.


--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


Doug Robbins - Word MVP wrote:
Hi Greg,

That would need to be:

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

"Greg Maxey" wrote in message
...
Try:

{ Set MyText { Quote " This is my name { Quote 34 Rey 34 }}"}
--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


Rey wrote:
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?





  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Rey Rey is offline
external usenet poster
 
Posts: 3
Default How to include quotes inside bookmarks

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.
--
Rey


"Greg Maxey" wrote:

Doug, either way appears to work equally well for me.


--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


Doug Robbins - Word MVP wrote:
Hi Greg,

That would need to be:

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

"Greg Maxey" wrote in message
...
Try:

{ Set MyText { Quote " This is my name { Quote 34 Rey 34 }}"}
--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


Rey wrote:
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?




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
Smart quotes and index codes [email protected] Formatting Long Documents 5 July 29th 06 03:37 PM
bookmarks shown in doc BorisS Microsoft Word Help 5 July 11th 06 11:37 PM
bookmarks in {Include Text} field KellyG Microsoft Word Help 2 July 1st 06 07:31 AM
Bookmarks, hyperlinks and 'save as' PhenyxFire Microsoft Word Help 0 June 6th 06 08:20 PM
Bookmarks appearing in HTML Format document links AndyBear Microsoft Word Help 3 June 1st 05 02:45 PM


All times are GMT +1. The time now is 05:22 AM.

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"