Since this constant is built into VBScript, you don't have to define it before using it. Use it anywhere in your code to represent the values shown.

Constant Value Description

vbObjectError

-2147221504

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

CopyCode imageCopy Code
Err.Raise Number = vbObjectError + 1000

Requirements

See Also