Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   How can I include quotes around a word in text string? (http://www.outlookbanter.com/outlook-vba/7538-how-can-i-include-quotes.html)

Maureen March 2nd 06 04:58 PM

How can I include quotes around a word in text string?
 
How can I include quotes around a word in a text string?

For example:
sTempString = "PLEASE NOTE THAT THE CODE NEXT TO THE "REF:" NOTATION
INDICATES"

--
Maureen

Sue Mosher [MVP-Outlook] March 2nd 06 05:01 PM

How can I include quotes around a word in text string?
 
Build the text string in sections:

sTempString = "PLEASE NOTE THAT THE CODE NEXT TO THE " & _
Chr(34) & "REF:" & Chr(34) & " NOTATION INDICATES"


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Maureen" wrote in message ...
How can I include quotes around a word in a text string?

For example:
sTempString = "PLEASE NOTE THAT THE CODE NEXT TO THE "REF:" NOTATION
INDICATES"

--
Maureen


Maureen March 2nd 06 05:23 PM

How can I include quotes around a word in text string?
 
Thank you!
--
Maureen


"Sue Mosher [MVP-Outlook]" wrote:

Build the text string in sections:

sTempString = "PLEASE NOTE THAT THE CODE NEXT TO THE " & _
Chr(34) & "REF:" & Chr(34) & " NOTATION INDICATES"


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Maureen" wrote in message ...
How can I include quotes around a word in a text string?

For example:
sTempString = "PLEASE NOTE THAT THE CODE NEXT TO THE "REF:" NOTATION
INDICATES"

--
Maureen



Michael Bednarek March 3rd 06 12:10 PM

How can I include quotes around a word in text string?
 
On Thu, 2 Mar 2006 07:58:28 -0800, Maureen wrote in
microsoft.public.outlook.program_vba:

How can I include quotes around a word in a text string?

For example:
sTempString = "PLEASE NOTE THAT THE CODE NEXT TO THE "REF:" NOTATION
INDICATES"


Double them:
sTempString = "PLEASE NOTE THAT THE CODE NEXT TO THE ""REF:"" NOTATION INDICATES"

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"


All times are GMT +1. The time now is 08:39 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com