I am calling Excel objects from MS Access and I do not manage to close the instance!
One would believe that the workbooks are closed because we cannot see them anymore but in task Manager --> Processes I still have EXCEL.EXE*32 running...
This is what I have:
Dim xlApp as Excel.Application
Dim wbks as Workbooks
Set xlApp = GetObject("", "Excel.Application")
Set wbks = xlApp.Workbooks
wbks.Open "C:\blp\api\Office Tools\BloombergUI.xla"
wbks("BloombergUI.xla").RunAutoMacros (xlAutoOpen)
wbks.Add
xlApp.Visible = True
...performs actions...
xlApp.Workbooks(1).SaveAs FileName:=strFullPath, FileFormat:=xlCSV
xlApp.Application.DisplayAlerts = False
xlApp.Workbooks("BbgDivData.csv").Close SaveChanges:=True
wbks("BloombergUI.xla").Close
xlApp.Quit
Set xlApp = Nothing
Any idea why it is still there? I suspect the Add-in to mess things up!