LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Overwrite existing file without prompt

Application.DisplayAlerts = False
Activeworkbook.SaveCopyAs "C:\Backups\Backup1.xls"
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy


"Mark" wrote in message
...
I am using Excel 97.

When backing up my files I am prompted by a message "file exists do you

want
to overwrite" or something to that effect.

Is there a way to override the prompt so that it is just overwritten?

Can someone assist with some code, please?

Thanks

--
Mark



 
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
accidentally click YES to overwrite an existing file mtrent Excel Discussion (Misc queries) 2 March 30th 06 07:01 PM
Using SaveAs Statement to overwrite existing File Peter Excel Programming 3 June 16th 04 12:27 PM
Write over existing file with no Prompt DNewton Excel Programming 2 April 29th 04 06:54 PM
Save As without overwrite prompt Fred Smith Excel Programming 2 March 3rd 04 01:23 PM
Prompt to overwrite Karen[_10_] Excel Programming 2 October 16th 03 08:24 PM


All times are GMT +1. The time now is 06:39 AM.

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

About Us

"It's about Microsoft Excel"