Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

In VBA, can it be determined if a varient has been defined or undefined?

$
0
0

I would like a boolean that tells me True, False, or not yet defined, but because it's boolean it really can't have three values.

Instead then, I should probably pick a varient but I'd like to know if a varient isn't given a value, can VBA tell me that the varient is undefined (perhaps null)?

Ie, how would I test for that? (For use in an If statement or a loop.)

Do I have to set it like: value = undefined and test for that? (Should a string be used: value = "undefined"?)

Can I set it to a null value and what code should be used for that and for the If/loop test?


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>