ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Saving an Excel File (https://www.excelbanter.com/excel-programming/422940-saving-excel-file.html)

Bob Mignault[_2_]

Saving an Excel File
 
I use "ActiveWorkbook.Save" to save the Excel worksheet as I exit the
program.

In code, how can I prevent the system from advising that the file already
exists and asking if I want to replace the existing file?

Regards,

Bob Mignault



Bernard Liengme

Saving an Excel File
 
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs (etc.)

best wishes

--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Bob Mignault" wrote in message
...
I use "ActiveWorkbook.Save" to save the Excel worksheet as I exit the
program.

In code, how can I prevent the system from advising that the file already
exists and asking if I want to replace the existing file?

Regards,

Bob Mignault





All times are GMT +1. The time now is 05:36 PM.

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