Kill xlwings Python process on workbook close when using optimized connection

a 夏天 提交于 2019-12-24 18:31:11

问题


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



来源:https://stackoverflow.com/questions/50831402/kill-xlwings-python-process-on-workbook-close-when-using-optimized-connection

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!