ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel not closing if I start Thread (https://www.excelbanter.com/excel-programming/424076-excel-not-closing-if-i-start-thread.html)

Brent Rogers

Excel not closing if I start Thread
 
Hello

I have written an C# Excel add on displays a dialog, and if the user clicks
a particular button will start up a 2nd thread. This thread only runs for a
few seconds. However once I run the 2nd thread and exit the worksehet,
Excel itself stays around.

Is there anything special I need to do to:
1] The .NET/COM Component?
2] The Module that the Thread calls/runs?
3] The function that the Excel Macro calls to display the dialog?
4] The Thread object?
5] The Excel Macro itself?
6] other/

Brent Rogers

Excel not closing if I start Thread
 
More Info:

The problem only appears to occur if in my thread I make reference to The
Excel Object. The Excel Application object is a global variabe and NOT
local to the Thread itself.


All times are GMT +1. The time now is 08:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com