Hi all, I'm struggling on Excel automation. I'm populating an Excel spreadsheet through VBA code in Access. I use the following code:
Yet the Excel process is still running and continues to run until I exit my Access database. If I try to open a spreadsheet with the database open, the sheet won't open correctly. I don't want to have to quit my Access app in order to check the spreadsheet, because after the spreadsheets are compiled I email them out to people. I just like to look them over first to make sure they're accurate. My question is: is there a way to kill all Excel processes BEFORE exiting Access?
Thanks in advance.
Kelly
Code:
Dim xlApp As Object
...
Set xlApp = New Excel.Application
...
xlApp.Quit
Set xlApp = Nothing
Thanks in advance.
Kelly