[VB]MsgBox with variable
Solved
Reese
-
Anonymatum -
Anonymatum -
Hello,
I am a beginner with VB and I am trying to do something quite simple: to have a MsgBox that displays the result of two variables and some text.
For example: MsgBox Variable1 & "text1" & Variable2 & "text2"
But I get a Compile error Expected: end of statement that appears around text1. I know it should be simple but can someone help me?
I am a beginner with VB and I am trying to do something quite simple: to have a MsgBox that displays the result of two variables and some text.
For example: MsgBox Variable1 & "text1" & Variable2 & "text2"
But I get a Compile error Expected: end of statement that appears around text1. I know it should be simple but can someone help me?