escape character

  • Thread starter Thread starter sam
  • Start date Start date
S

sam

Hi,
does anyone know what the escape character in vba is?

like i want to make " part of a string but it always
takes it as the end of the string.
thanx
 
Sam,

VBA doesn't have an escape character as such. Use two "
characters. E.g.,

Dim S As String
S = "This has a ""quoted"" word."


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top