VB help says "to generate the error number 513, assign vbObjectError + 513 to the Number property". When I raise an error in this manner, then display the number in a message box in an error handler, the error number is -2147220991.
Shouldn't the number displayed in the message box be 513? That's what I was hoping for.
It seems strange to me that the error number is supposed to be a whole number between 0 and 65,535, but the vbObjectError constant equals -2147221504. I don't understand how adding 513 to the vbObjectError produces an error number 513.
Can someone help me out with this?
Thanks,
Paul
Shouldn't the number displayed in the message box be 513? That's what I was hoping for.
It seems strange to me that the error number is supposed to be a whole number between 0 and 65,535, but the vbObjectError constant equals -2147221504. I don't understand how adding 513 to the vbObjectError produces an error number 513.
Can someone help me out with this?
Thanks,
Paul