I have the following code (in Access 2000):
Dim xlApp As Excel.Application
Set xlApp = New Excel.Application
xlApp.Workbooks.Open (NewFileName)
Dim xlBook As Excel.Workbook
Set xlBook = xlApp.Workbooks(1)
{more code here}
xlBook.Save
xlBook.Close
Set xlBook = Nothing
xlApp.Quit
Set xlApp = Nothing
After this code runs and I have output data from Access to Excel, I am unable to open the .xls file from Windows Explorer. Each time I have to go to Task Manager-->Processes, highlight EXCEL.EXE and then click <End Process>.
What am I missing?
Thanks!
- Bruce
Dim xlApp As Excel.Application
Set xlApp = New Excel.Application
xlApp.Workbooks.Open (NewFileName)
Dim xlBook As Excel.Workbook
Set xlBook = xlApp.Workbooks(1)
{more code here}
xlBook.Save
xlBook.Close
Set xlBook = Nothing
xlApp.Quit
Set xlApp = Nothing
After this code runs and I have output data from Access to Excel, I am unable to open the .xls file from Windows Explorer. Each time I have to go to Task Manager-->Processes, highlight EXCEL.EXE and then click <End Process>.
What am I missing?
Thanks!
- Bruce