Silent SaveAs when using the Excel win32com module

Chris chris.olekas at gmail.com
Mon Sep 10 12:05:34 EDT 2007


On Sep 10, 11:57 am, Chris <chris.ole... at gmail.com> wrote:
> I'm trying to create an excel file which will act as a log, however I
> want to overwrite the file if it exists.
>
> Looking at the SaveAs method I can't find anything that would allow
> it. I don't want the prompt to appear to ask whether to replace the
> file or not. I just want to replace it without thinking.
>
> Thanks in advance.

Googling around I found that a way around this is to just delete the
file before you save (if it exists)... any other solutions?




More information about the Python-list mailing list