Is it possible to use quotation marks in a string? Is there some sort of variable that I can use like vbQuote or something because it won't work if you just use:VB Code:
Call MsgBox("John Shouts "Hello"")
Printable View
Is it possible to use quotation marks in a string? Is there some sort of variable that I can use like vbQuote or something because it won't work if you just use:VB Code:
Call MsgBox("John Shouts "Hello"")
Try this:Edit: You can also use Chr$(34) which is the ASCII value of ", egVB Code:
MsgBox "John shouts ""Hello"""VB Code:
MsgBox "John shouts " & Chr$(34) & "Hello" & Chr$(34)
this will insert quotes to the string:VB Code:
MsgBox ("John Shouts " & Chr(34) & "Hello" & Chr(34))
Thanx a lot guys, that should sort it out!