C.2. String Operator

There is only one operator for strings, the concatenation operator, represented by the ampersand symbol, &. It's used to bind a number of string variables together, creating one string from two or more individual strings. Any nonstring variable or expression is converted to a string prior to concatenation. Its syntax is:

result = expression1 & expression2.

Get VB & VBA in a Nutshell: The Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.