How to tell if object variable is set

  • Thread starter Thread starter Amy Blankenship
  • Start date Start date
A

Amy Blankenship

I have a global object variable that may or may not have already been set.
How do I tell if the variable is a valid reference to an object?

IsNull is false
IsEmpty is false
IsMissing is false
= nothing gives an error
IsObject is true

Not sure what else to try...

Thanks;

Amy
 
Close! <g>

If MyObject Is Nothing Then
' Object isn't set
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top