jkfeagle
Codus Confusious
- Local time
- Today, 02:27
- Joined
- Aug 22, 2002
- Messages
- 166
I seem to remember coming across a thread about this once but for the life of me I cannot find it now. I am using Automation from Access to create/populate/format/save an Excel file. Everything works great with it. Unfortunately, after I've saved the file, quit the sessions and set my object variables back to nothing, there is still a hidden Excel session running. How oh how do I kill this session? I have even used code I found in the Microsoft Knowledge base for this very purpose and cannot seem to get it to work. One note, closing the database will terminate the hidden Excel session. Here is what I have at the end of my code:
objXLApp.Application.ActiveWorkbook.SaveAs "M:\SafetyRecords.xls"
objXLApp.Application.ActiveWorkbook.Close
objXLApp.Parent.Quit
Set objSheet = Nothing
Set objXLApp = Nothing
Anyone have any ideas?
objXLApp.Application.ActiveWorkbook.SaveAs "M:\SafetyRecords.xls"
objXLApp.Application.ActiveWorkbook.Close
objXLApp.Parent.Quit
Set objSheet = Nothing
Set objXLApp = Nothing
Anyone have any ideas?