I am already using a snippet I found here to open my Excel spreadsheet:
After several processes mess with the Excel (open, switch tabs, save data); I want my Close form event to also close out of Excel. Sometimes it is not visible on the screen but still shows up in the task manager (right now the 2 last instances are consuming 55 MG of resources).
I need Excel to completely shut down. Is this possible? Somebody have some code for me?
Alan
Code:
Sub CISOpenDataSource(ProcName)
Dim cmdlgOpenFile As New clsCommonDialog
Dim FilePather As String
Dim xlApplic As Excel.Application
Dim wk As Excel.Workbook
Dim ws As Excel.Worksheet
[red]'If fatal error, try Reference to Excel ##.0 Object Library[/red]
Set xlApplic = New Excel.Application
After several processes mess with the Excel (open, switch tabs, save data); I want my Close form event to also close out of Excel. Sometimes it is not visible on the screen but still shows up in the task manager (right now the 2 last instances are consuming 55 MG of resources).
I need Excel to completely shut down. Is this possible? Somebody have some code for me?
Alan
It is easier to apologize than ask permission.