How to open write reserved excel file in python with win32com?

前端 未结 1 1979
青春惊慌失措
青春惊慌失措 2021-01-07 03:37

I\'m trying to open a write-protected ms excel 2007 file using win32com in python -- I know the password. I can open it with user input of the password into the excel dialo

相关标签:
1条回答
  • 2021-01-07 04:22

    I can get the above code to work if I don't try to use named function parameters. I.e. the following works:

    app.Workbooks.Open("filename.xls", 2, True, None, None, "secret")
    
    0 讨论(0)
提交回复
热议问题