A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Embedding quote marks in If-Else-Then statements



 
 
Thread Tools Display Modes
  #1  
Old July 28th 05, 07:05 PM
EHPorter
external usenet poster
 
Posts: n/a
Default Embedding quote marks in If-Else-Then statements

Is it possible to embed quote marks in If-Else-Then statements? Some sort
of switch or character that tells the merge to treat the quote mark ( " ) as
part of the text, rather than as part of the If command.

An example. The line:

{IF {Mergefield "Nicknames"} "" "The nickname is "Crash" Johnson" "There
is no nickname"} does not work, because the quotes around the word Crash are
treated as control characters in the If statement. Is there any way around
this?

Thanks








Ads
  #2  
Old July 28th 05, 08:11 PM
Doug Robbins
external usenet poster
 
Posts: n/a
Default

Use the following construction:

{IF {Mergefield "Nicknames"} "" { Quote "The nickname is '"'Crash'"'
Johnson" } "There is no nickname"}

where the quote marks either side of Crash are enclosed by apostrophes.
That is

apostrophe double quote apostrophe Crash apostrophe double quote apostrophe

--
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
"EHPorter" wrote in message
...
Is it possible to embed quote marks in If-Else-Then statements? Some sort
of switch or character that tells the merge to treat the quote mark ( " )
as part of the text, rather than as part of the If command.

An example. The line:

{IF {Mergefield "Nicknames"} "" "The nickname is "Crash" Johnson"
"There is no nickname"} does not work, because the quotes around the word
Crash are treated as control characters in the If statement. Is there
any way around this?

Thanks










 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spainish marks such as tildes and accent marks J-Rod Microsoft Word Help 1 February 20th 05 10:30 PM
French (dagger) to English (curly) quotation marks Catherine Microsoft Word Help 5 February 13th 05 11:13 PM
emphasis marks - dot Peter Microsoft Word Help 5 January 20th 05 05:06 AM
eliminating tick marks and formatting selected text r frank Microsoft Word Help 1 December 16th 04 01:05 PM
How can I print the formatting marks (space marks, papagraph mark. AndrewA Microsoft Word Help 1 December 12th 04 08:54 PM


All times are GMT +1. The time now is 09:05 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Copyright 2004-2022 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.