+ Reply to Thread
Results 1 to 4 of 4

Error handling: "Resume without Error"

  1. #1
    Forum Contributor
    Join Date
    09-23-2008
    Location
    UK
    Posts
    137

    Error handling: "Resume without Error"

    my code has the following structure:

    Please Login or Register  to view this content.
    When there is an error (eg if x=0) I get the message "Run time error 20, resume without error" and the resume line is highlighted yellow.

    basic objective is to skip over second piece of code within the loop and increase count before continuing if there is an error.

    Thanks
    Last edited by firefly2k8; 09-08-2010 at 07:48 AM.

  2. #2
    Forum Contributor
    Join Date
    09-23-2008
    Location
    UK
    Posts
    137

    Re: Error handling: "Resume without Error"

    ok, issue was needed to put error handling at the end of the procedure with an exit sub before handler

    ie
    Please Login or Register  to view this content.

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Error handling: "Resume without Error"

    Hi firefly2k8,

    whats the big picture?

    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,280

    Re: Error handling: "Resume without Error"

    FYI, this:
    Please Login or Register  to view this content.
    does not do what you seem to think it does. There is no need for it in your code.
    Remember what the dormouse said
    Feed your head

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1