问题
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