ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Overwrite existing file without prompt (https://www.excelbanter.com/excel-programming/310285-re-overwrite-existing-file-without-prompt.html)

Tom Ogilvy

Overwrite existing file without prompt
 
Application.DisplayAlerts = False
Activeworkbook.SaveCopyAs "C:\Backups\Backup1.xls"
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy


"Mark" wrote in message
...
I am using Excel 97.

When backing up my files I am prompted by a message "file exists do you

want
to overwrite" or something to that effect.

Is there a way to override the prompt so that it is just overwritten?

Can someone assist with some code, please?

Thanks

--
Mark





All times are GMT +1. The time now is 02:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com