Results 1 to 12 of 12

Thread: Global Error Handling

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    Yes; any procedure that you want error handling in must have at least the

    [vba]On Error GoTo MyErrHandler

    '...code

    MyErrHandler:
    '...something here
    End Sub 'End Function
    [/vba]

    ...in it

    You could read this KB entry by DRJ for a general error handler:

    http://www.vbaexpress.com/kb/getarticle.php?kb_id=189

    Also, read thru the help topic for the On Error Statement.

    Hope this helps,

    Mark
    Last edited by GTO; 05-14-2009 at 06:44 PM.

Posting Permissions

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