ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Disable Dialogue Box To Save & Replace File (https://www.excelbanter.com/excel-discussion-misc-queries/51862-disable-dialogue-box-save-replace-file.html)

Dolphinv4

Disable Dialogue Box To Save & Replace File
 
Hi,

I'd like to have a macro to NOT have excel ask me if I want to replace the
existing file when i save, ie, when I save a file and there's already one in
the folder, I want excel to just overwrite the file without having a dialogue
box asking me if I want to overwrite the existing file. Is it possible?

Regards,
Dolphin

Anne Troy

Disable Dialogue Box To Save & Replace File
 
Hi, Fish. :) Dave Hawley has an article he
http://www.ozgrid.com/VBA/prevent-save-prompt.htm
************
Anne Troy
www.OfficeArticles.com

"Dolphinv4" wrote in message
...
Hi,

I'd like to have a macro to NOT have excel ask me if I want to replace the
existing file when i save, ie, when I save a file and there's already one
in
the folder, I want excel to just overwrite the file without having a
dialogue
box asking me if I want to overwrite the existing file. Is it possible?

Regards,
Dolphin




mudraker

Disable Dialogue Box To Save & Replace File
 

Dolphin

Try

Application.DisplayAlerts = False
save file
Application.DisplayAlerts = True


--
mudraker
------------------------------------------------------------------------
mudraker's Profile: http://www.excelforum.com/member.php...fo&userid=2473
View this thread: http://www.excelforum.com/showthread...hreadid=478670



All times are GMT +1. The time now is 12:05 AM.

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