Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default excel application does not shut down after program exit

I haven't used VB.Net other than to explore its capabilities. So, I
don't know if this applies in your case.

One cause is a 'global' reference to an XL object. Suppose you have a
reference set to the XL application. Then, you can use a statement
such as Range("A1").Value=1 (i.e., without qualifying it with an object
such as xlApp.). While possible, it results in a reference established
from the controlling app to the controlled app. Consequently, the
controlled app cannot go away as long as the controller is active.

One way to find the problem is to test with late binding. Then,
unqualified references will result in compile errors.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
hi,
i create an excel application (MS Excel 2000 installed) in vb.net. At the end, i close all workbook and quit from excel aplication. I also set them nothing and call garbage collection. But excel application does not end, stays resident in memory
so my applications gives memory error.

Thanks for your help

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I exit a workbook in Excel without closing the program? cosborn Excel Discussion (Misc queries) 1 September 21st 06 09:19 PM
Excel 2003 - the "X" to exit the application option is greyed out. msiegert Excel Discussion (Misc queries) 5 April 19th 05 11:56 PM
application.quit will not shut off application john Excel Programming 0 January 9th 04 11:29 PM
Messgae Box on Exit Application patterson_m[_5_] Excel Programming 1 October 14th 03 07:17 PM
get the program id of an excel application from the task manager nikolaosk[_5_] Excel Programming 2 October 14th 03 03:06 PM


All times are GMT +1. The time now is 11:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"