Program Auto Yes for overwriting files

  • Thread starter Thread starter DKY
  • Start date Start date
D

DKY

I have a save dialog in one of my macros but since it is overwriting
file in a location week after week I get a popup that says
A file named "D6_Panic.xls" already exists in this location. Do yo
want to replace it?
Is there a way to automatically program a yes there in the macro
 
before save use this line of code:
application.displayalerts = false

after saving turn it back on with this line of code
application.displayalerts = true

HTH
Die_Another_Day
 
It works, thanks!!! Does that work for Deleting Sheets too? Sometime
when I delete a sheet it asks if I'm sure
 

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

Back
Top