Can't close Excel completely using win32com on Python

后端 未结 4 596
轻奢々
轻奢々 2020-12-24 02:38

This is my code, and I found many answers for VBA, .NET framework and is pretty strange. When I execute this, Excel closes.

from win32com.client import Dispa         


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-24 03:40

    I have this in my files that use Excel:

    self.excel.Application.Quit()
    

提交回复
热议问题