Code always interrupted. Have to press Continue constantly

gkeppler

New Member
Joined
Jan 12, 2009
Messages
21
Whenever I run any of my macros, I get the error message "Code Interruption" or something like that, and I have to press the Continue button many times for the code to finish. The code runs without this error on other computers. I don't think I've changed any of my settings recently, but this problem seemed to appear out of the blue a couple weeks ago. Thanks.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
I would assume you have shut down and re-started your computer. I have seen this posted many times and recently had it happen to me a couple weeks ago and most people a re-start fixes the problem. Not sure why or what causes this to happen, but like I said it happened to me a few weeks ago for the first time in 3 years.
 
Upvote 0
If it continues after a reboot, then try placing the following line at the start of your macro code:

Code:
Application.EnableCancelKey = xlDisabled
 
Upvote 0
The same thing just happened to me with code that I have been running for months. The offending lines are... (1) Set objWkBk = Workbooks(Workbooks.count), and (2) objWkBk.Close False. I do not know what to do. I am running Excel 10. Any advise would be greatly appreciated.
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,426
Members
448,961
Latest member
nzskater

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