My Technical Notes

Thursday, 17 December 2015

VBA: Concatenating Strings

Use the ampersand operator (`&`):


Dim X As String
X = "Hello"

Dim Y As String
Y = "World"

Dim Msg As String
Msg = X & " " & Y & "!"

No comments: