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 Apr 6th, 2002, 03:27 PM   #1
Gahagan
New Member
 
Join Date: Feb 2002
Location: Presque Isle, Maine, USA
Posts: 12
Default

Hi;

In two separate workbooks, I have the following:

In the Workbook_Open event:
frmSplash.show

In frmSplash's code:
Application.OnTime Now + TimeValue("00:00:02"), "KillForm"

In a module:
Sub KillForm()
unload frmSplash
End Sub

Again, in one workbook it works beautifully, in another it crashes XL. When I step through everything it works fine, but on a cold open it crashes. I get 'Object invoked has disconnected from one of its clients', runtime error 9, I/O Device Error, Path/File Error, etc. I can recreate it every time - and can only open it now by holding down the SHIFT key while doing so...

But the SAME code works PERFECTLY in a different workbook! I am completely lost here. If anyone has any ideas PLEASE let me know.

(Is there a limit to how many modules or forms one VBAPRoject can have??)

Thanks for ANY help...
Gahagan

[ This Message was edited by: Gahagan on 2002-04-06 14:33 ]
Gahagan is offline   Reply With Quote
Old Apr 7th, 2002, 01:52 AM   #2
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,064
Default

Hi

from knowledge i have suffered on Erro 9 its looking for something, as you point out poss a file that moved named different or missing...

could be anything... look into the links, hyper's and vlookup anything thats going serch outside that wkbk and also scan ALL codes and see if one is calling something just in case..

will be something small and sill but hard to fine.

Any Outlooks connections....

__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is offline   Reply With Quote
Old Apr 7th, 2002, 03:51 AM   #3
Dave Hawley
Banned
 
Join Date: Feb 2002
Posts: 1,582
Default

Hi Gahagan

Not sure what the answer is to your problem but these things can happen in Excel for no apparent reason. Sometimes it helps to Export all modules and UserForms to your hardrive, Right click on a sheet name tab, select all sheets, then right click again and Copy all sheets to a new workbook. Then save this new Workbook and Import all modules you Exported.

It may also help to re-name your UserForm.

Last, but my know means least try the information here:
http://search.support.microsoft.com/...maxResults=150


Dave Hawley is offline   Reply With Quote
Old Apr 7th, 2002, 07:11 AM   #4
Derek
Board Regular
 
Join Date: Feb 2002
Location: Perth Australia
Posts: 1,567
Default

Hi Gahagan

Don't know if this will help in any way but your experience seems awefully familiar.
I had a very similar problem with a macro that runs perfectly on a machine using NT4 with Excel 2000 but crashed xl when run on a machine using Windows 2000 and Excel 2000. The run time message was also 'Object invoked has disconnected from one of its clients'.
I tracked this down to a line of code using cut with destination:= .Copy with destination:= seemed okay but it definately didn't like using cut without going through all the cell selecting process.

regards
Derek
Derek 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 -4. The time now is 04:59 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 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