Out of Memory error with Application.Quit method 
Author Message
 Out of Memory error with Application.Quit method

I have an EXCEL VBA application that runs via auto_open. It calls (opens
then runs a subroutine) another workbook and then tries to quit, via
Application.Quit

When I step through it it works fine
When I run it (auto_open) normally I get a pop up
   Microsoft Visual Basic (in title bar, probably truncated)
   Out of Memory  (in message area)

when I click ok, I sometimes (not always) get a Dr Watson
obviously, this is impairing automation!

any ideas?




Wed, 08 Oct 2003 01:28:33 GMT  
 Out of Memory error with Application.Quit method
I ran into something similar with PowerPoint.  It seems that when you're
running macros from AutoOpen, the poor app's not quite on its feet yet and
if the macro tells it to quit it totally loses it.  Tech talk?  <g>

I ended up writing a little VB app to start PPT, fire off the macro I wanted
to run, then force PPT to quit.  Worked a treat.

--
Steve Rindsberg, PowerPoint MVP
Got a PowerPoint wish/suggestion/beef?

Get the PPT FAQs at http://www.rdpslides.com/pptfaq/
RnR PPTools - http://www.rdpslides.com/pptools/
------

Quote:
> I have an EXCEL VBA application that runs via auto_open. It calls (opens
> then runs a subroutine) another workbook and then tries to quit, via
> Application.Quit

> When I step through it it works fine
> When I run it (auto_open) normally I get a pop up
>    Microsoft Visual Basic (in title bar, probably truncated)
>    Out of Memory  (in message area)

> when I click ok, I sometimes (not always) get a Dr Watson
> obviously, this is impairing automation!

> any ideas?





Wed, 08 Oct 2003 06:25:44 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Excel Application isn't released from memory after Quit method called

2. using application.quit method causing problems

3. -2147023170 Automation error on quit method of Word object

4. Quit method call to a Word object returns ambiguous Error in VB.Net

5. Fatal Error on quitting MsP application

6. kernel32.dll errors on Application.Quit

7. memory error when using the refresh method

8. Error 405(Method not allowed) error in using webclient.uploadfile method

9. Quit method causes crash called from automation

10. Application Error - Memory Reference

11. Memory error in VB application

12. "Unexpected error - quitting" error

 

 
Powered by phpBB® Forum Software