#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default backup

HI
I have a workbook and would like to save a backup copy to
another drive. Ideally this backup copy would be
overwritten every time I saved the orginal.
Any ideas how to do it?

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default backup

Add this code to your workbooks Before_close event:

On Error Resume Next 'Allows overwriting of current file
ThisWorkbook.SaveCopyAs ("yourdriveletter:\your file name.xls") 'Saves a
copy of the file on/in the drive/folder specified

You can put this in the before_close event as well but it will only create a
backup of the file in the current drive/folder
ThisWorkbook.CreateBackup
HTH

"libby" wrote in message
...
HI
I have a workbook and would like to save a backup copy to
another drive. Ideally this backup copy would be
overwritten every time I saved the orginal.
Any ideas how to do it?

thanks



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
Backup sedgy Excel Discussion (Misc queries) 5 February 6th 09 06:13 PM
Backup JT Excel Discussion (Misc queries) 2 October 10th 08 12:10 AM
backup gall Excel Discussion (Misc queries) 6 August 8th 06 07:22 PM
Backup Alek Excel Discussion (Misc queries) 1 January 8th 06 01:23 AM
backup Mark New Users to Excel 4 April 5th 05 04:24 PM


All times are GMT +1. The time now is 01:45 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"