VBA implicitly converts values to Variant
as needed, so what would be a use case of the CVar
function? In the example given in the documentation, the call to CVar
is obviously redundant.
To be precise, I am looking for a concrete, minimal VBA code example, which
- compiles, but
- won't compile (or produce a different output) when (only!)
CVar(...some expression...)
is replaced by...some expression...
.
I haven't been able to find such an example, but maybe the someone else can.