ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   On error End Sub (https://www.excelbanter.com/excel-programming/311375-error-end-sub.html)

Esau[_2_]

On error End Sub
 
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

Chip Pearson

On error End Sub
 
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




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





All times are GMT +1. The time now is 07:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com