Hello All,
I recently wrote an application that exports several ASCII files into an Excel Workbook. The application after it has finished it's exporting terminates and Excel loads up and shows the Workbook with several WorkSheets in it.
I just noticed that if I have run the export program 3 times today, then look in the Task Manager, Excel.exe will show up 3 times in the list. How do I STOP that from happening? I exit Excel after saving my Workbook.
Here is how I use the object in my export class.
In the declaration section I have this line:
Dim objExcel As Excel.Application
In the Class_Initialize routine is these lines:
Set objExcel = New Excel.Application
objExcel.Visible = False
In the Class_Terminate routine is these lines:
objExcel.Visible = True
Set objExcel = Nothing
ANY HELP would be greatly appreciated.
Thanks In Advance.
Ferlin
I recently wrote an application that exports several ASCII files into an Excel Workbook. The application after it has finished it's exporting terminates and Excel loads up and shows the Workbook with several WorkSheets in it.
I just noticed that if I have run the export program 3 times today, then look in the Task Manager, Excel.exe will show up 3 times in the list. How do I STOP that from happening? I exit Excel after saving my Workbook.
Here is how I use the object in my export class.
In the declaration section I have this line:
Dim objExcel As Excel.Application
In the Class_Initialize routine is these lines:
Set objExcel = New Excel.Application
objExcel.Visible = False
In the Class_Terminate routine is these lines:
objExcel.Visible = True
Set objExcel = Nothing
ANY HELP would be greatly appreciated.
Thanks In Advance.
Ferlin