I have an object objMyObject. If the object has been instantiated then I want the application to do one thing, if the object has not been instantiated I want the application to do something else.
Is there a way to find out if the object has not been instantiated (other than through error handling)....
Such as...
If objMyObject = Nothing Then...
or...
If IsNull(objMyObject) Then ....
I tried both of these things and VBA doesn't like trying to compare an object with Nothing, and the IsNull always seems to return FALSE.
Is there a way to find out if the object has not been instantiated (other than through error handling)....
Such as...
If objMyObject = Nothing Then...
or...
If IsNull(objMyObject) Then ....
I tried both of these things and VBA doesn't like trying to compare an object with Nothing, and the IsNull always seems to return FALSE.