Kill xlwings Python process on workbook close when

2019-08-29 10:51发布

问题:

I want to start using "optimized connection" feature of xlwings (v 0.11.4), but I would like to be able to kill Python process when I close the workbook (even if Excel instance is still running). I couldn't find any information on this in topic in xlwings documentation. Anyone had a similar problem and found a solution?

回答1:

The link below might be helpful where you can quit app directly (which will close and kill excel application).

I cannot close Excel 2016 after executing a xlwings function

Best Regards, Python Beginner