FireStrike
Registered User.
- Local time
- Today, 14:36
- Joined
- Jul 14, 2006
- Messages
- 69
I have a form that takes data from a database, and creates a report in excel. I finally have this working. The problem is that when it is done, I close the workbook, but it never closes excel. Excel still runs in the background and does not let go of the file. So far the only way I have found around this is to open the task manager and kill the excel process. here is the code I have to open and close it, can someone help?
Set excApp = New Excel.Application
Set wb = excApp.Workbooks.Open(strFileName)
wb.Close acServerView, , acSaveYes
I have also used just
wb.close
and ran into the same problem
Set excApp = New Excel.Application
Set wb = excApp.Workbooks.Open(strFileName)
wb.Close acServerView, , acSaveYes
I have also used just
wb.close
and ran into the same problem