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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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