Thread: On error
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default On error

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