Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It's always worked for me, too.
But maybe you could just kill the existing name first. on error resume next kill myFileNameWithPathHere on error goto 0 'do your save The "on error resume next" says to ignore any error if the file doesn't actually exist. doesn't apply wrote: displayalerts does not work with the overwrite msgbox of SaveAs! ----- Frank Kabel wrote: ----- Hi use application.displayalerts = false before your statement and application.displayalerts = True after this -----Original Message----- I don't see this option in saveas. Is there another way to avoid the overwite dialog box when overwriting a file with a macro? Thanks . -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to run a macro automatically when the file is opened? | Excel Discussion (Misc queries) | |||
insert rows automatically to avoid overwriting | Excel Discussion (Misc queries) | |||
Confused here Prevent Saving File - but allow ONLY File SAVEAS Met | Excel Discussion (Misc queries) | |||
saveas CSV file | Excel Discussion (Misc queries) | |||
Automatically run macro when opening file | Excel Programming |