[python-win32] Excel Saving

Sayed A. Kooshesh sakoosh@uark.edu
Tue, 22 Jan 2002 15:29:48 -0600


Hi,
I'm trying to run a loop to add a Picture object to a number of spread
sheets.
The problems is when I use

file='z:/testbook.xls'
xl=win32com.client.Dispatch("Excel.Application")
#Code omitted

xl.ActiveWorkbook.SaveAs(file, win32com.client.constants.xlNormal, '', '',
0, 0)
#it always pops up the dialog box that that File already Exists in this
location as does
xl.Save(file)
#end loop
xl.Quit()

Is there any way to make these dialog boxes not appear?

-Ari