Quotation marks in String

  • Thread starter Thread starter Nathan
  • Start date Start date
N

Nathan

Is it possible to have a string variable have a value that contain quotation
marks "
??
 
dim myStr as string
mystr = "asdf""qwer"
debug.print mystr

You just double up the quotes.

Or if it really gets confusing:

mystr = "asdf" & chr(34) & "qwer"
 
or if you want to go blind :-)

mystr = "asdf" & """" & "qwer"

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Back
Top