SaveAs - Stop the Overwrite box?

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
 
J

JE McGimpsey

one way:

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