Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / June 2004

Tip: Looking for answers? Try searching our database.

Quotes in IF Field Code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Debbie S. - 07 Jun 2004 17:02 GMT
Is there some way to indicate that I want a double quote
to be treated literally within the Truetext or FalseText
(see syntax below) of an IF expression?  

Word is assuming that the quote ends the text
expression.  I tried using curly quotes instead of
straight quotes (when my opening quote was a straight
quote), but it still assumed that was the end of the text
expression.
{ IF Expression1 Operator Expression2 TrueText FalseText }

Thanks in advance.
macropod - 08 Jun 2004 11:42 GMT
Hi Debbie,

Try:

{ IF Expression1 Operator Expression2 "{QUOTE 34}TrueText{QUOTE 34}" "{QUOTE
34}FalseText{QUOTE 34}" }

This produces a result that displays as "True Text" or "False Text",
including the quotes. Replacing the leading and trailing 34s in each
expression with 147 and 148, respectively, can be used to generate 'smart'
quotes.

A 39 produces a single straight quote, while 145 and 146, respectively, can
be used to generate 'smart' single quotes.

Cheers

> Is there some way to indicate that I want a double quote
> to be treated literally within the Truetext or FalseText
[quoted text clipped - 8 lines]
>
> Thanks in advance.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.