MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Jan 5th, 2004, 02:08 PM   #1
x-amount
 
Join Date: May 2003
Posts: 238
Default HELP!!! "Code execution has been interrupted"

But I havent pressed anything!!!

There is definite problem, as the "Code execution has been interrupted" error message appears seemingly at random (although if the workbook doesnt change it is the same points), and for no reason.

If I click the continue button the macro runs exactly as planned, but still there seems to be no rhyme or reason as to why this happens!?

It even invokes on the workboon_open function.

Any ideas???
x-amount is offline   Reply With Quote
Old Jan 5th, 2004, 02:22 PM   #2
Joe4
MrExcel MVP
Moderator
 
Joe4's Avatar
 
Join Date: Aug 2002
Posts: 16,450
Default Re: HELP!!! "Code execution has been interrupted"

Could you post the code, indicating at what line the error occurs (when it happens)?
__________________
TIPS FOR FINDING EXCEL SOLUTIONS
1. Use the built-in Help that comes with Excel/Access
2. Use the Search functionality on this board
3. A lot of VBA code can be acquired by using the Macro Recorder.
Joe4 is offline   Reply With Quote
Old Jan 5th, 2004, 02:55 PM   #3
x-amount
 
Join Date: May 2003
Posts: 238
Default Re: HELP!!! "Code execution has been interrupted"

Its a massive project, with userforms and bits.

If any "guru" really fancies a challenge (which has got me well and truly baffled (and I thought I was quite advanced!)) then I am more than happy to email it to them...

Otherwise, I am continually doing exactly this
x-amount is offline   Reply With Quote
Old Jan 5th, 2004, 03:03 PM   #4
Joe4
MrExcel MVP
Moderator
 
Joe4's Avatar
 
Join Date: Aug 2002
Posts: 16,450
Default Re: HELP!!! "Code execution has been interrupted"

Well, without seeing any code, or at least having further description of the conditions under which the error occurs, it is very difficult to offer any assistance.

Could you at least post the code that is being interrupted up to the point where it is being interrupted?
__________________
TIPS FOR FINDING EXCEL SOLUTIONS
1. Use the built-in Help that comes with Excel/Access
2. Use the Search functionality on this board
3. A lot of VBA code can be acquired by using the Macro Recorder.
Joe4 is offline   Reply With Quote
Old Jan 5th, 2004, 03:25 PM   #5
x-amount
 
Join Date: May 2003
Posts: 238
Default Re: HELP!!! "Code execution has been interrupted"

the macro stops literally as i open the workbook , and highlights the "Private Sub Workbook_Open()" line as the point of error.

has anyone ever heard of a similar problem? I'm tending to think it may be a setting I've fiddled with??
x-amount is offline   Reply With Quote
Old Jan 5th, 2004, 03:29 PM   #6
Joe4
MrExcel MVP
Moderator
 
Joe4's Avatar
 
Join Date: Aug 2002
Posts: 16,450
Default Re: HELP!!! "Code execution has been interrupted"

What is your macro security level set to (Tools | Options | Security | Macro Security)?

Also, what do the first few lines of your Workbook_Open macro look like?
__________________
TIPS FOR FINDING EXCEL SOLUTIONS
1. Use the built-in Help that comes with Excel/Access
2. Use the Search functionality on this board
3. A lot of VBA code can be acquired by using the Macro Recorder.
Joe4 is offline   Reply With Quote
Old Jan 5th, 2004, 04:25 PM   #7
x-amount
 
Join Date: May 2003
Posts: 238
Default Re: HELP!!! "Code execution has been interrupted"

It works ok on another users computer, so I assume its a problem with my settings somewhere.

Thanks for your help
x-amount is offline   Reply With Quote
Old Jan 5th, 2004, 04:27 PM   #8
TommyGun
MrExcel MVP
 
TommyGun's Avatar
 
Join Date: Dec 2002
Location: Clear Lake, TX
Posts: 4,202
Default Re: HELP!!! "Code execution has been interrupted"

Post the Workbook_Open code.
TommyGun is offline   Reply With Quote
Old May 23rd, 2005, 02:46 PM   #9
Jeminar
 
Join Date: Oct 2004
Posts: 18
Default This is the bain of my life too.

I have this problem too. It is a real head banger. WHY? The line of code works one day and then randomly stops. Like the previous user, there is NO rhyme or reason. Code that was worked for months or years stops on innocuous lines. Pressing continue makes it work again. I just run code with my finger on the C button.

And yet this seems completely undialogued on Google or elsewhere.

The problem does not replicate on other computers very often (yes, again completely randomly).

Now, it's started hapenning to me in Word; and I have a COMPLETLY NEW LAPTOP with completely new code. What can I be doing wrong? On this computer I HAVE NEVER SET A WATCH.



Some-one must know this problem and have a resolution. I've been fighting it for a year now, and I promise you: it has NOTHING to do with the code itself.
Jeminar is offline   Reply With Quote
Old May 23rd, 2005, 03:10 PM   #10
maxmadx
 
Join Date: Aug 2004
Posts: 142
Default just a thot.

new pc, new code... hmmm. All else being constant, automatic or manual updates like microsoft commonly release might be messing with key files no? might be that the other people's PCs havent or have had certain updates that you have or havent had.. not very likely but u never know.
maxmadx is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 05:23 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2010 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes