View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default escape character

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


"sam" wrote in message
...
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