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

M

Maureen

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"
 
S

Sue Mosher [MVP-Outlook]

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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
M

Maureen

Thank you!
--
Maureen


Sue Mosher said:
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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
M

Michael Bednarek

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"
 
Top