Turn Off Alert Before Overwriting Message Box

G

Guest

In a macro I save a workbook which overwrites another. The problem is every
time the macro is excuted, I get a message box asking if I want to overwrite
the existing file. Is there a way to turn this message off?

I've tried placing the following in my macro, but it has no effect:
Application.AlertBeforeOverwriting = False
 
B

Bob Phillips

Try preceding with

Application.DisplayAlerts = False

and set back to True afterwards

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
G

Guest

That works. Thanks

Bob Phillips said:
Try preceding with

Application.DisplayAlerts = False

and set back to True afterwards

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

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