By using listi.net you agree to our
cookie policy
, We and our partners operate globally and use cookies, for multiple purposes
Close
listi.net
Using reserved words in a programming language
I had the following code in a VBA program:
VarPtr = 0
When I compiled the code I got the following message:
Compile error:
Function call on left-hand side of assignment must return Variant or Object
The problem was caused because
VarPtr
is a type or reserved word in VBA.
Please enable JavaScript to view the
comments powered by Disqus.
blog comments powered by
Disqus