Strings that have quotes in them

  • Thread starter Thread starter abxy
  • Start date Start date
A

abxy

I have a string of text that i need to put in vba, however the strin
itself has quotes in it, so how do i properly write thi
line...everything that's blue is a break in the string where i need t
put vba code :

=HYPERLINK("[I:\General Documents\ & Format(Date, "mmmm")
\Returns.xls".xls] & Sheets(ActiveSheet.Index + 1) & !A1",
txtName.value & )



Thanks! :
 
both of these give the same result

sstring = """"
sstring = "ggggggg" & """" & "gghbnfg"


sstring = Chr(34)
sstring = "ggggggg" & Chr(34) & "gghbnfg
 

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