IsObject

Returns a Boolean value indicating whether an expression references a valid Automation object.

Syntax

IsObject(expression)

The expression argument can be any expression.

Remarks

IsObject returns True if expression is a variable of Object subtype or a user-defined object; otherwise, it returns False.