Automatically accepting overwrite

  • Thread starter Thread starter robert_woodie
  • Start date Start date
R

robert_woodie

ok so i have this code:

ActiveWorkbook.SaveAs Filename:="FILENAME.xls", _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False

but when it runs it asks me if i want to overwrite the existing
file.which i do

How can i alter this code to automatically overwrite?

Thanks
Robert
 
Robert

This line of code may well work:
Application.DisplayAlerts=False

Regards

Philip
 

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

Similar Threads


Back
Top