On error End Sub

  • Thread starter Thread starter Esau
  • Start date Start date
E

Esau

On Error Resume Next
This works great but I need to stop
the macro

On Error End Sub
This will not work how can I write it so it will


Thank You

Esau
 
Esau,

Structure your code similar to the following:

Sub AAA()
On Error Goto EndSub
'
' your code here
'
EndSub:
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

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