Saving a File to a Name That Already Exists

G

Guest

I want to overwrite a file that already exists with the saving of a file
using VBA but I do NOT want the user to have to see the dialog box that warns
of this issue. I wish the save to be automatic. I thought it might have to
do with the ConflictResolution parameter of the save but can't determine how
to set it. How do I avoid the user being prompted to confirm saving over a
file that exits. Or would it be easier to delete the file before saving. If
so how do I delete it first?
 
G

Guest

Try:-

Application.displayalerts=false
Your save command
Application.displayalerts=true

Mike
 

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