Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Mar 2006
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    289
    Thanks
    0
    Thanked 1 Time in 1 Post

    Pick up were procedure left off (2003 sp3)

    I have a procedure that halts when a critical error occurs. Is there a way to restart the procedure from the next step after the error is fixed?
    Thanks
    chuck

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Pick up were procedure left off (2003 sp3)

    You should create an error handler in your code. Depending on the type of error, you can
    - Exit the procedure.
    - Use Resume to try the offending line again.
    - Use Resume Next to continue on the line after the offending one.
    - Use Resume <labelname> to continue at the specified label.

    Look up Resume in the VBA help, or search this forum for examples.

Posting Permissions

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