Hi all,
Ok I know this is a simple question but it just happen that I dunno it, dohh... :(
How do I display or msgbox a statement with quotes?
Like:
"Hello World!!"
I wish to display the above message WITH quotes.
Thanks for any help!!
Printable View
Hi all,
Ok I know this is a simple question but it just happen that I dunno it, dohh... :(
How do I display or msgbox a statement with quotes?
Like:
"Hello World!!"
I wish to display the above message WITH quotes.
Thanks for any help!!
This will display "Hello World"Code:MsgBox """Hello World"""
above is better but FYI
msgbox chr(34) & "Hello" & Chr(34)
Yep, or use
Code:msgBox Chr(34) & "Hey I'm surrounded by double quotes" & Chr(34)
'for "Hey I'm surrounded by double quotes" or
MsgBox Chr(39) & "Hey I'm surrounded by single quotes" & Chr(39)
'for 'Hey I'm surrounded by single quotes'
Thanks guys!!!