How can i put quotes in my variable:
when i'll do msgbox myvar
i'll see "hello" and not hello
i want the quotes at the beginning ant at the end of my string.
Printable View
How can i put quotes in my variable:
when i'll do msgbox myvar
i'll see "hello" and not hello
i want the quotes at the beginning ant at the end of my string.
Have funnnnnn!Code:MsgBox Chr(34) & "hello" & Chr(34)
'Or
MsgBox Chr(39) & "hello" & Chr(39)
i found out :
myvar = """hello"""
or MsgBox """hello"""
(the double quotes "" between the 'string' quotes are translated to one quote)