Hello,
I have a vba macro which uses access queries to create an excel workbook. Each Excel workbook is created from a command button on an access form. After I create the workbook, save it, and close via the macro, I still have an instance of excel running in the background. The code I use is:
xlApp.Quit
Set xlBook = Nothing
Set xlSheet1 = Nothing
Set xlSheet2 = Nothing
Set xlSheet3 = Nothing
Set xlSheet 4 = Nothing
Set xlSheet5 = Nothing
Set xlApp = Nothing
As far as I can tell, this takes care of all of my objects, but I cannot get rid of taht instance of Excel until I also close Access.
Is there a way to find out which objects are keeping that background excel running?
Any thoughts would be appreciated.
Thanks
cmz
I have a vba macro which uses access queries to create an excel workbook. Each Excel workbook is created from a command button on an access form. After I create the workbook, save it, and close via the macro, I still have an instance of excel running in the background. The code I use is:
xlApp.Quit
Set xlBook = Nothing
Set xlSheet1 = Nothing
Set xlSheet2 = Nothing
Set xlSheet3 = Nothing
Set xlSheet 4 = Nothing
Set xlSheet5 = Nothing
Set xlApp = Nothing
As far as I can tell, this takes care of all of my objects, but I cannot get rid of taht instance of Excel until I also close Access.
Is there a way to find out which objects are keeping that background excel running?
Any thoughts would be appreciated.
Thanks
cmz