Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Program Auto Yes for overwriting files


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

--
DK
-----------------------------------------------------------------------
DKY's Profile: http://www.excelforum.com/member.php...fo&userid=1451
View this thread: http://www.excelforum.com/showthread.php?threadid=54254

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default Program Auto Yes for overwriting files

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Program Auto Yes for overwriting files


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

--
DK
-----------------------------------------------------------------------
DKY's Profile: http://www.excelforum.com/member.php...fo&userid=1451
View this thread: http://www.excelforum.com/showthread.php?threadid=54254

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Program Auto Yes for overwriting files

Yes.

--
Regards,
Tom Ogilvy


"DKY" wrote in message
...

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


--
DKY
------------------------------------------------------------------------
DKY's Profile:

http://www.excelforum.com/member.php...o&userid=14515
View this thread: http://www.excelforum.com/showthread...hreadid=542542



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
XLS Files Default Program Dan Excel Discussion (Misc queries) 1 February 11th 09 05:51 AM
What program should i use for archived files? R Oconnor Excel Discussion (Misc queries) 2 January 12th 07 08:56 AM
Convert files from one program to another Kelly Excel Programming 0 September 1st 05 06:51 PM
Automatically overwriting files Sherwood Excel Programming 2 August 4th 05 10:56 PM
Program Files Folder Scott Gordon Excel Programming 0 May 5th 04 06:26 PM


All times are GMT +1. The time now is 09:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"