Hi all,

I read some books said that microsoft error messages lie in the range of 1 to 65535. Books recommend using vbObjectError + ? to define our own error constants. vbObjectError's value =
-2147221504.

Why vbObjectError's value = -2147221504 since microsoft error messages only lies in 1 to 65535?

Does this mean all user-defined error constants must be negative?

How can i define my own error constants?

Thanks!