ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   SaveAs (https://www.excelbanter.com/excel-programming/289332-saveas.html)

Bill[_19_]

SaveAs
 
I want VBA to save a file using SaveAs and have it replace an existing file. How do I make it not display the dialog box telling me that the file already exists and asking if I want to replace it


Trevor Shuttleworth

SaveAs
 
Bill

Application.DisplayAlerts = False
' your code
Application.DisplayAlerts = True

Regards

Trevor


"Bill" wrote in message
...
I want VBA to save a file using SaveAs and have it replace an existing

file. How do I make it not display the dialog box telling me that the file
already exists and asking if I want to replace it?





All times are GMT +1. The time now is 01:37 AM.

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