Has anyone experienced problems with automating Excel from Access/VBA while in Vista environment?
I recently “upgraded” to Vista Ultimate from Vista Premium, and now when I run an app that opens Excel and does some things, it doesn’t quit/ close the instance of Excel. I have four calls to the same function in my VBA code, and when done I have four instances of Excel open in the Task Manager.
I move the app to an XP operating system, and everything is fine.
I use the following to close and exit the function:
Exit_fFormatSpreadsheet:
Set xlSourceRange = Nothing
Set xlColPoint = Nothing
Set xlChartObj = Nothing
‘ Close and save the workbook
xlWrkbk.Close SaveChanges:=True
Set xlWrkbk = Nothing
‘ Quit Excel
xlApp.Quit
Set xlApp = Nothing
Exit Function
This has worked fine for two years, now it doesn’t. I had a choice of ‘upgrading’ to Ultimate, or ‘downgrading’ to XP. It appears I made the wrong choice.
Any ideas are greatly appreciated.
Thanks,
Ken