Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Backup | Excel Discussion (Misc queries) | |||
Backup | Excel Discussion (Misc queries) | |||
backup | Excel Discussion (Misc queries) | |||
Backup | Excel Discussion (Misc queries) | |||
backup | New Users to Excel |