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
 

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

Top