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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top