View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Trevor Shuttleworth Trevor Shuttleworth is offline
external usenet poster
 
Posts: 1,089
Default How to include a double quotation character in a string?

George

try:

Sub test()
Dim sString As String
sString = "Elements ""abc"", ""acb"", ""cba"" are the solution."
MsgBox sString
End Sub

Regards

Trevor


"Georgee" wrote in message ...
Hi!
My string has to include double quotation characters in a string.
For instance following sentence I need to code into string:

Elements "abc", "acb", "cba" are the solution.

How to code it so VB does not interpret double quotation characters as an end or begining of the string?

George