Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checking "Object" value

Status
Not open for further replies.

JoeSmoe55

Programmer
Aug 1, 2005
38
US
Is there a way to check to set if a Object is not initialized? i.e...

if Object = nothing then....

I know the above example doesn't work but is there another way other than VBA throwing an error?

Thanks,

Joe
 
Except if you've done so called "implicit instantiation", where any reference to the object will reinstantiate it - see for instance Instantiating Objects, method 3 vs the other two methods.

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top