C
Craig W. Mischenko
I am creating and automating an Excel application from
VB.NET 2003 on Windows XP. I have tried creating the new
instance of Excel a couple of different ways
(CreateObject vs. New Applcation) and no matter which way
I try it the Excel process does not exit until my VB.NET
application exits. For a really simple test, I tried the
following:
Private Sub Form1_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
Dim myExcel As Excel.Application
'myExcel = CreateObject("Excel.Application")
myExcel = New Excel.Application
myExcel.Quit()
myExcel = Nothing
End Sub
A new Excel process is created and even after calling the
Quit method and setting the private variable to Nothing,
the Excel process remains alive until my Windows Forms
app exits. Does anyone have an explanation/solution for
this?
Regards,
Craig W. Mischenko
VB.NET 2003 on Windows XP. I have tried creating the new
instance of Excel a couple of different ways
(CreateObject vs. New Applcation) and no matter which way
I try it the Excel process does not exit until my VB.NET
application exits. For a really simple test, I tried the
following:
Private Sub Form1_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
Dim myExcel As Excel.Application
'myExcel = CreateObject("Excel.Application")
myExcel = New Excel.Application
myExcel.Quit()
myExcel = Nothing
End Sub
A new Excel process is created and even after calling the
Quit method and setting the private variable to Nothing,
the Excel process remains alive until my Windows Forms
app exits. Does anyone have an explanation/solution for
this?
Regards,
Craig W. Mischenko