on error

  • Thread starter Thread starter dstiefe
  • Start date Start date
D

dstiefe

when looping through my code...if i receive an error...when the error occurs
how can i have it go back to the top of the block of code...so in other words

for example

Start back here

code
code
code
on error go back to "Start back here"
code
code
code
 
for example

:ThisPlace

code
code
code
on error goto ThisPlace
code
code
code



Corey....
 
Hi Corey, I believe the Label should have the colon after instead of before

ThisPlace:
 
Or you could use:

on error resume next

this will skip the cell that is causing the problems and execute the rest of
the code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top