yqhjynfqchellonl mark hammond schreef normally press close excel error box continue work file handle pywin32 happens try open normally oops sorry see already gave exception get trying open file im afraid dont know answer though answer question following code seems work xlapp dispatchexcelapplication wb1xlappworkbooksopeninputfilereadonly1corruptload1 xlappsendkeysenterwait1 xlappdisplayalerts 0 xlappquit del xlapp trick find right corruptload statement corresponding number xlrepairfile displayalerts needed prevent excel asking save file opened readonly first place hmmmm best regards patrick asselman _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 thu 07 aug 2008 184452 0200 pythonwin32 exception opening excel file