
Automation Does not Close Microsoft Excel
I do use this line in the end of my code, but Microsoft has a bug that it
still doesn't close down Excel properly. They recommend using the Quit
method to free up these lost resources, but I cannot use this method because
i don't accually want the Application to shut down. So I'm looking to see
if anyone else knows another way to get around Microsofts Bug. The
reference document below describes exactly my problem.
Thanks for the help...
Marcel
Quote:
>Add this line at the end of you code.
>Set ExcelObject = Nothing
>TAD
>>Thanks for Reading this message. When you use Automation to control
>>Microsoft Excel and you want the instance of Microsoft Excel to close, you
>>must use the Quit method. Otherwise, the instance of Microsoft Excel will
>>remain open and take up resources.
>>I am encountering this issue with Excel but do not wish to use the quit
>>Method because I want Excel to remain open so that the user may manually
>>close the application. Is there away to cleanup after excel without
having
>>to use the quit method?
>>Reference File - Technet PSS ID Number: Q145770
>>Thanks,
>>Marcel Fortin