Returns a Boolean value indicating whether an expression references a valid Automation object.
IsObject(expression)
The expression argument can be any expression.
IsObject returns True if expression is a variable of Object subtype or a user-defined object; otherwise, it returns False.