Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Automatically replace existing file on save

VBA code:

I want to replace an existing file with a file of the same name in the
same directory. I want to do so bypassing the warning message box. How
can I do that?

TIA
Ron



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Automatically replace existing file on save

Ron

Application.DisplayAlerts = False
' Your code ...
Application.DisplayAlerts = True

Regards

Trevor


"ronber" wrote in message
...
VBA code:

I want to replace an existing file with a file of the same name in the
same directory. I want to do so bypassing the warning message box. How
can I do that?

TIA
Ron



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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
can I save a file of multiple names to replace using excell 03 Greg is working hard. Excel Discussion (Misc queries) 2 July 18th 06 01:39 PM
Can I automatically replace data when importing a text file? Jake New Users to Excel 1 June 6th 06 03:09 PM
Disable Dialogue Box To Save & Replace File Dolphinv4 Excel Discussion (Misc queries) 2 October 24th 05 05:42 AM
Existing file not defaulting to same location using "Save As" Daniel918 Excel Discussion (Misc queries) 1 June 1st 05 12:55 AM
can i save an existing .xls file as a .csv file using command line craigkan Excel Discussion (Misc queries) 2 February 18th 05 02:01 PM


All times are GMT +1. The time now is 09:04 AM.

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"