Automatically replace existing file on save

  • Thread starter Thread starter ronber
  • Start date Start date
R

ronber

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
 
Ron

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

Regards

Trevor
 
Back
Top