On error

  • Thread starter Thread starter Todd Huttenstine
  • Start date Start date
T

Todd Huttenstine

Is "On error exit sub" valid? I am trying to use that and VBA does not like
that...

Todd
 
Did you look at the Help, Todd?

You can use a label just before the end of the sub:

On Error GoTo Exit_Sub
'do stuff
Exit_Sub:
End Sub
 
oh ok thanks. Yeah I just used a label but for some reason I thought on
error exit sub was an actual command.
 

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