Visual Basic for Applications Reference

& Operator Example

This example uses the & operator to force string concatenation.

  Dim MyStr
MyStr = "Hello" & " World"   ' Returns "Hello World".
MyStr = "Check " & 123 & " Check"   ' Returns "Check 123 Check".