Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
hbear hbear is offline
external usenet poster
 
Posts: 22
Default inserting quotation marks with IF

I'm creating a bibliography through a merge and would like to insert
quotation marks around one field if another field contains text. The
criteria is simple: if "Details" is not blank, insert """ (that's a single
quotation mark) in front of "Summary", with a similar statement at the end of
"Summary". I've tried both the IF, Then, Else... box and manually inserting
the statement myself. Neither is working. I'm not getting quotation marks
under any circumstances. I'm guessing it's some confusion surrounding having
three quotation marks in a row ("""). What's the workaround for this?
Adding spaces doesn't help (of course).
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default inserting quotation marks with IF

Use either

{ IF "{ MERGEFIELD Details }" "" "{ QUOTE 34 }Summary{ QUOTE 34 }" }

or if you need a lot of them it might be clearer to use something like

{ SET q { QUOTE 34 } }

at the beginning of the document then use { q } where you need the qutoe
mark, e.g.

{ IF "{ MERGEFIELD Details }" "" "{ q }Summary{ q }" }

(All the {} have to be the special field braces that you can insert using
ctrl-F9 - you cna't just type them on the keyboard.)

Peter Jamieson
"hbear" wrote in message
...
I'm creating a bibliography through a merge and would like to insert
quotation marks around one field if another field contains text. The
criteria is simple: if "Details" is not blank, insert """ (that's a single
quotation mark) in front of "Summary", with a similar statement at the end
of
"Summary". I've tried both the IF, Then, Else... box and manually
inserting
the statement myself. Neither is working. I'm not getting quotation
marks
under any circumstances. I'm guessing it's some confusion surrounding
having
three quotation marks in a row ("""). What's the workaround for this?
Adding spaces doesn't help (of course).


  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
hbear hbear is offline
external usenet poster
 
Posts: 22
Default inserting quotation marks with IF

Thank you! Fabulous information!


"Peter Jamieson" wrote:

Use either

{ IF "{ MERGEFIELD Details }" "" "{ QUOTE 34 }Summary{ QUOTE 34 }" }

or if you need a lot of them it might be clearer to use something like

{ SET q { QUOTE 34 } }

at the beginning of the document then use { q } where you need the qutoe
mark, e.g.

{ IF "{ MERGEFIELD Details }" "" "{ q }Summary{ q }" }

(All the {} have to be the special field braces that you can insert using
ctrl-F9 - you cna't just type them on the keyboard.)

Peter Jamieson
"hbear" wrote in message
...
I'm creating a bibliography through a merge and would like to insert
quotation marks around one field if another field contains text. The
criteria is simple: if "Details" is not blank, insert """ (that's a single
quotation mark) in front of "Summary", with a similar statement at the end
of
"Summary". I've tried both the IF, Then, Else... box and manually
inserting
the statement myself. Neither is working. I'm not getting quotation
marks
under any circumstances. I'm guessing it's some confusion surrounding
having
three quotation marks in a row ("""). What's the workaround for this?
Adding spaces doesn't help (of course).



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
Quotation marks Quotation marks Microsoft Word Help 1 June 20th 06 07:32 PM
Why don't my quotation marks appear until I hit another key? Matter of Fact Microsoft Word Help 1 November 17th 05 05:51 PM
quotation marks Michael Microsoft Word Help 3 November 17th 05 02:26 AM
quotation marks Dulcinea Microsoft Word Help 2 September 18th 05 11:36 PM
Need Quotation marks to appear in TOC - TK Microsoft Word Help 2 September 9th 05 12:14 AM


All times are GMT +1. The time now is 08:49 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"