M
Mike
Can anyone tell me why the following code fails to quit
Excel for me.
If I comment out the four lines that reference the
workbook, Excel closes.
excel = CreateObject("excel.application")
excelworkbook = excel.Workbooks.Open(in_file)
excelworkbook.close()
System.Runtime.InteropServices.Marshal.ReleaseComObject
(excelworkbook)
excelworkbook = Nothing
excel.quit()
System.Runtime.InteropServices.Marshal.ReleaseComObject
(excel)
excel = Nothing
Thanks for any help.
Mike Sweet
Excel for me.
If I comment out the four lines that reference the
workbook, Excel closes.
excel = CreateObject("excel.application")
excelworkbook = excel.Workbooks.Open(in_file)
excelworkbook.close()
System.Runtime.InteropServices.Marshal.ReleaseComObject
(excelworkbook)
excelworkbook = Nothing
excel.quit()
System.Runtime.InteropServices.Marshal.ReleaseComObject
(excel)
excel = Nothing
Thanks for any help.
Mike Sweet