On Error End Sub

Farah

Board Regular
Joined
Oct 4, 2005
Messages
98
Hello,

I am getting an error "Run Time Error 424; object required" Continue, End, Debug etc. I know why am i getting this error.

I want that this error doesn't show. or maybe come back to excel sheet again witout any action.

I have tried the followings, but they don't seem to work.

On error GoTo 0
On error Resume Next (but this is not what i want)
Application.DisplayAlerts = False.


Warm Regards,
Farah
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Try something like this:

Code:
On Error Goto Handler
' Your code
On Error GoTo 0
Exit Sub
Handler:
If Err = 424 Then
'  code to tidy up
   Exit Sub
Else
   Err.Clear
   Resume Next
End If
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,712
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top