
Excel Automation - Problem closing instance of Excel from with Access2000
Quote:
>-----Original Message-----
>I have created a VB routine to read access tables and
then create 9
>spreadsheets in one workbook and save it.
>This all works well but when calling the application.quit
or in my case
>xlApp.quit it does not seem to close Excel. When checking
in the Taskmanager
>there is still an instance of excel running. I cannot get
my program to
>close this instance.
>I have called the quit command and set the instance to
nothing , but it
>still refuses to close. If I exit Access this instance
then closes.
>Any ideas ???
>Thanks
>--
>Wayne Mills
>Information Technology & Financial Services
>Tel :(043) - 7264088
>Cell :0823687481
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.462 / Virus Database: 261 - Release Date:
13/03/2003
>.
I had a same problem in my vb.net. I found a solution for
it. You will have to actually release all the objects
from excelapp, worksheet, range, etc. Here is a link to
the solution but in C#.
http://www.eggheadcafe.com/articles/20021012.asp