ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Save As without overwrite prompt (https://www.excelbanter.com/excel-programming/293249-save-without-overwrite-prompt.html)

Fred Smith

Save As without overwrite prompt
 
I want to overwrite an old file without getting prompted as to whether it's
OK.

Is there something I can specify on the SaveAs command? Or do I delete the
old file first (if it's there)?

--
Thanks,
Fred
Please reply to newsgroup, not e-mail




Cesar Zapata[_3_]

Save As without overwrite prompt
 
Hi,

use the

application.displayalerts = false
thisworbook.save
application.displayalerts = true

--
Mucho gusto,

Cesar Zapata



Fred Smith wrote:
I want to overwrite an old file without getting prompted as to whether it's
OK.

Is there something I can specify on the SaveAs command? Or do I delete the
old file first (if it's there)?



Tom Ogilvy

Save As without overwrite prompt
 
a nitpick, but you shouldn't need that with save for a workbook that has
been previously saved, but as the OP specified SAVEAS

application.displayalerts = false
thisworbook.saveas . . .
application.displayalerts = true


--
Regards,
Tom Ogilvy

"Cesar Zapata" wrote in message
...
Hi,

use the

application.displayalerts = false
thisworbook.save
application.displayalerts = true

--
Mucho gusto,

Cesar Zapata



Fred Smith wrote:
I want to overwrite an old file without getting prompted as to whether

it's
OK.

Is there something I can specify on the SaveAs command? Or do I delete

the
old file first (if it's there)?






All times are GMT +1. The time now is 12:30 AM.

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