R
Ray C
I have the following code, that when it finishes executing, Excel remains in
the TaskManager.
However, when I remove the line that sets the objBook variable, Excel
disappears from the task manager. My question is this...Am I setting the
workbook improperly?
I tried putting "Set objBook=Nothing" right before I set objExcel to
nothing, but Excel still remains in the task manager as well.
Dim objExcel As Excel.Application
Dim objBook As Excel.Workbook
Set objExcel = New Excel.Application
objExcel.Visible = True
Set objBook = objExcel.Workbooks.Add
objExcel.Quit
Set objExcel = Nothing
the TaskManager.
However, when I remove the line that sets the objBook variable, Excel
disappears from the task manager. My question is this...Am I setting the
workbook improperly?
I tried putting "Set objBook=Nothing" right before I set objExcel to
nothing, but Excel still remains in the task manager as well.
Dim objExcel As Excel.Application
Dim objBook As Excel.Workbook
Set objExcel = New Excel.Application
objExcel.Visible = True
Set objBook = objExcel.Workbooks.Add
objExcel.Quit
Set objExcel = Nothing