Excel hangs in task manager

Hi. I use automation and Excel. I try to exit Excel like this: XlWorkBook :=XlApplication.ActiveWorkbook; XlWorkBook.SaveAs(FileName); XlWorkBook.Close(); XlApplication.Quit; CLEAR(XlWorkBook); CLEAR(XlApplication); However, Excel still is present in Task Manager. How do I exit Excel the right way? Best regards Thomas Jensen

Don’t know if it’s relevant but I have seen XlApplication.Quit() somewhere.

Hmm, if the last reference to the excel goes away, Excel should close itself. MAybe you have “OSA” in your windows startup folder ?