These constants are only available when your project has an explicit reference to the appropriate type library containing these constant definitions. For VBScript, you must explicitly declare these constants in your code.

Constant

Value

Description

vbObjectError

-2147221504

User-defined error numbers should be greater than this value, for example,