Returns the expression converted to a variant data type (Variant).

expressionThe expression to evaluate and convert to a variant.

* The "expression" can be the same range as a double for numeric expression.
* The "expression" can be the same range as a string for non-numeric expressions.

Dim iValue As Integer 
Dim vString As Variant
iValue = 25
vString = CVar(iValue & " hello")
Debug.Print vString '= "25 hello"

© 2021 Better Solutions Limited. All Rights Reserved. © 2021 Better Solutions Limited Top