Jun 20, 2001 #1 Rjc8513 Technical User Feb 12, 2001 140 US Running Excel 97. Why am I getting the error message- "Object required (Error 424) when running the code Application.Quit?!!! I have used this code many times before and have never encountered this error before. Thanks. Richard...
Running Excel 97. Why am I getting the error message- "Object required (Error 424) when running the code Application.Quit?!!! I have used this code many times before and have never encountered this error before. Thanks. Richard...
Jun 20, 2001 #2 DarkSun Programmer Mar 8, 2001 232 GB This may sound stupid but check the spelling of Application in your code. Object required would suggest that it can't find the application object. Also is that the line of code that is highlighted in debug mode? Upvote 0 Downvote
This may sound stupid but check the spelling of Application in your code. Object required would suggest that it can't find the application object. Also is that the line of code that is highlighted in debug mode?
Jun 20, 2001 Thread starter #3 Rjc8513 Technical User Feb 12, 2001 140 US Thanks for the response. Oddly enough if I click "End" or "Debug", Excel then quits. Yes, when I stepped thru the code "Application.Quit" is the line on which the error occurs. Application IS spelled correctly. Richard... Upvote 0 Downvote
Thanks for the response. Oddly enough if I click "End" or "Debug", Excel then quits. Yes, when I stepped thru the code "Application.Quit" is the line on which the error occurs. Application IS spelled correctly. Richard...
Jun 20, 2001 #4 DarkSun Programmer Mar 8, 2001 232 GB what happens before this line? Upvote 0 Downvote
Jun 20, 2001 #5 DarkSun Programmer Mar 8, 2001 232 GB Is there any code in any of the close events in the workbooks? Upvote 0 Downvote
Jun 20, 2001 Thread starter #6 Rjc8513 Technical User Feb 12, 2001 140 US Nothing in the Close events. Her are the last few lines of code: Application.DisplayAlerts = False ActiveWorkbook.Save Application.StatusBar = False Application.Quit Richard... Upvote 0 Downvote
Nothing in the Close events. Her are the last few lines of code: Application.DisplayAlerts = False ActiveWorkbook.Save Application.StatusBar = False Application.Quit Richard...
Jun 21, 2001 #7 DarkSun Programmer Mar 8, 2001 232 GB Which version of Excel are you running? I assume this code is running from within Excel. I was able to run the code fine in Excel 97. No problems. What happens if you take out the Application.Quit line? Upvote 0 Downvote
Which version of Excel are you running? I assume this code is running from within Excel. I was able to run the code fine in Excel 97. No problems. What happens if you take out the Application.Quit line?
Jun 21, 2001 Thread starter #8 Rjc8513 Technical User Feb 12, 2001 140 US I found my problem. I have a series of User Forms/DialogSheets used as menus. The way my code was branching created the error. It works now. Thanks for your help. Richard... Upvote 0 Downvote
I found my problem. I have a series of User Forms/DialogSheets used as menus. The way my code was branching created the error. It works now. Thanks for your help. Richard...