Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to include quotation marks in a string

Status
Not open for further replies.

campbere

Technical User
Oct 10, 2000
146
US
How do I include quotation marks in a string.

StrMessage = "The following message is from a confused user: "I need help. I can't seem to figure out these qoutes"!"

Thanks
 
"The following message is from a confused user: & """ & "I need help. I can't seem to figure out these qoutes!"""
 
Personally, I prefer the following method, as those double, triple, and quadruple quotes can get confusing:

StrMessage = "The following message is from a confused user: " & Chr(34) & "I need help. I can't seem to figure out these qoutes!" & Chr(34)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top