SaveAs - Stop the Overwrite box?

  • Thread starter Thread starter Kenji
  • Start date Start date
K

Kenji

Whenever I do a "save as" in my VBA code, the clippy asks if I'm sure I want
to overwrite. Is there a way to make it overwrite, without the prompt?
Thanks!

Kenji
 
one way:

Application.DisplayAlerts = False
ThisWorkbook.SaveAs "<filename>"
Application.DisplayAlerts = True
 
Back
Top