Results 21 to 34 of 34

Thread: vbObjectError Not Working as Expected

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #33
    Quote Originally Posted by Paul_Hossler View Post
    you don't seem to be using a class module
    Let's assume i am.

    My reading of the spec is that vbObjectError isn't required for modules, not that it's forbidden. Do you think i may overlap native numbers if i used vbObjectError for custom errors in modules?

    Since 746 (attachment) seems to be the highest system error number used, I'd just keep my errors between 1000 and 9999. Anything below is Excel's, anything between is my custom
    maybe, but i don't feel that's reliable. Also, i think the unsigned-int nature of error numbers may be relevant.

    Hoping to find an algorithm based on vbObjectError, rather than a hardcoded range.

    thx!
    Last edited by johnywhy; 12-09-2021 at 02:10 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •