How to open write reserved excel file in python with win32com?
        Posted  
        
            by user261935
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user261935
        
        
        
        Published on 2010-05-22T07:44:15Z
        Indexed on 
            2010/05/22
            7:51 UTC
        
        
        Read the original article
        Hit count: 280
        
Hello,
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 dialog box. I want to be able to open the file without any user interaction. I've tried the following, but it still pops up the dialog box.
app.Workbooks.Open("filename.xls", WriteResPassword="secret")
Any ideas what I'm doing wrong please?
Thanks,
Dave.
© Stack Overflow or respective owner