While using xlwings 0.3.5 with the xlwings.bas added to an Excel add-in and the optimized connection enabled, exiting Excel with the pythonw process started closes the Excel GUI but leaves the EXCEL32 and pythonw processes running in the background. We've tried the following from a python function with no success: invoking the active workbook application quit method, and invoking sys.exit. We've also tried replacing all instances of ThisWorkbook with ActiveWorkbook within the xlwings.bas.
While using xlwings 0.3.5 with the xlwings.bas added to an Excel add-in and the optimized connection enabled, exiting Excel with the pythonw process started closes the Excel GUI but leaves the EXCEL32 and pythonw processes running in the background. We've tried the following from a python function with no success: invoking the active workbook application quit method, and invoking
sys.exit. We've also tried replacing all instances ofThisWorkbookwithActiveWorkbookwithin the xlwings.bas.