ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   File already exists. Do I want to replace? (https://www.excelbanter.com/excel-programming/363236-file-already-exists-do-i-want-replace.html)

EMoe[_108_]

File already exists. Do I want to replace?
 

Hello Programmers!

Is there a way to write in a code that bypasses or doesn't prompt the
message asking me Do I want to replace the existing file. My reponse
each time will be yes I do.

I want to eliminate the need to click yes everytime my code runs if
possible.

Thanks,
EMoe.


--
EMoe
------------------------------------------------------------------------
EMoe's Profile: http://www.excelforum.com/member.php...o&userid=23183
View this thread: http://www.excelforum.com/showthread...hreadid=548250


Norman Jones

File already exists. Do I want to replace?
 
Hi Emoe,

Try:

Application.DisplayAlerts = False

'Your File save code

Application.DisplayAlerts = True


---
Regards,
Norman



"EMoe" wrote in message
...

Hello Programmers!

Is there a way to write in a code that bypasses or doesn't prompt the
message asking me Do I want to replace the existing file. My reponse
each time will be yes I do.

I want to eliminate the need to click yes everytime my code runs if
possible.

Thanks,
EMoe.


--
EMoe
------------------------------------------------------------------------
EMoe's Profile:
http://www.excelforum.com/member.php...o&userid=23183
View this thread: http://www.excelforum.com/showthread...hreadid=548250




EMoe[_109_]

File already exists. Do I want to replace?
 

Thanks Norman!

I'll try this out.

Regards,
ME


--
EMoe
------------------------------------------------------------------------
EMoe's Profile: http://www.excelforum.com/member.php...o&userid=23183
View this thread: http://www.excelforum.com/showthread...hreadid=548250



All times are GMT +1. The time now is 10:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com