So far I've seen examples of invoking an Excel Application using pywinauto. Can I open an existing Excel Workbook using pywinauto ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You Don't even need pywinauto for this. Just open excel with subprocess and use command line switches to open your doc
But if you insist on using pywinauto
Then Try
.MenuSelect("File -> Open")
Then
.Edit.TypeKeys("*Filename with absolutepath*", with_spaces = True)
Then
.No.Click()
Or something to that effect if those are not the actual elements names