Thread: On error
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Todd Huttenstine[_3_] Todd Huttenstine[_3_] is offline
external usenet poster
 
Posts: 68
Default On error

oh ok thanks. Yeah I just used a label but for some reason I thought on
error exit sub was an actual command.


"JE McGimpsey" wrote in message
...
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


In article ,
"Todd Huttenstine" wrote:

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

like
that...

Todd