Operators
Operators
VBA - Operators
An Operator can be defined using a simple expression - 4 + 5 is equal to 9. Here, 4 and 5
are called operands and + is called operator. VBA supports following types of operators
−
Arithmetic Operators
Comparison Operators
Concatenation Operators
Show Examples
B ^ A will give
^ Exponentiation operator
100000
Show Examples
https://www.tutorialspoint.com/vba/vba_operators.htm 1/3
9/27/24, 1:39 AM VBA - Operators
Explore our latest online courses and learn new skills at your own pace. Enroll and
become a certified expert to boost your career.
Show Examples
https://www.tutorialspoint.com/vba/vba_operators.htm 2/3
9/27/24, 1:39 AM VBA - Operators
Show Examples
Note − Concatenation Operators can be used for both numbers and strings. The output
depends on the context, if the variables hold numeric value or string value.
https://www.tutorialspoint.com/vba/vba_operators.htm 3/3