ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Automatically replace existing file on save (https://www.excelbanter.com/excel-programming/278034-automatically-replace-existing-file-save.html)

ronber[_2_]

Automatically replace existing file on save
 
VBA code:

I want to replace an existing file with a file of the same name in the
same directory. I want to do so bypassing the warning message box. How
can I do that?

TIA
Ron



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/


Trevor Shuttleworth

Automatically replace existing file on save
 
Ron

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

Regards

Trevor


"ronber" wrote in message
...
VBA code:

I want to replace an existing file with a file of the same name in the
same directory. I want to do so bypassing the warning message box. How
can I do that?

TIA
Ron



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/





All times are GMT +1. The time now is 10:24 PM.

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