Overriding the overwrite confirmation prompt

B

Bob

Is there a way to modify the line below so that if the file "Project
Status.txt" already exists, it will automatically be overwritten without
prompting the user to confirm the overwrite?

ActiveWorkbook.SaveAs Filename:="Project Status.txt", _
FileFormat:=xlText, CreateBackup:=False

Thanks in advance for any help.

Bob
 
D

Dave Peterson

application.displayalerts = false
activeworkbook.saveas ....
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