TypeOf Operator

Syntax
TypeOf expr Is objtype
Group
Operator
Description
Return the True if expr refers to an object of objtype.
See Also
Objects

Sub Main
    Debug.Print TypeOf Err Is ErrObject ' True
End Sub