If I have a variable declared like this :
Dim Foo as Collection



How do I find out whether the variable was initialized to anything either by set Foo = new Collection

or by set Foo = Bar



I've tried isEmpty(), isObject(), isNull(), If Foo = Nothing Then.
The first three return the same for initialized and not initialized object, the last one leads to an error.

For now I've changed the declaration to
Dim Foo as Variant


since then the isEmpty() works, but I don't think this is the best way.

Thanks, Jenda