ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Workbook back up (https://www.excelbanter.com/new-users-excel/257826-workbook-back-up.html)

Aris

Workbook back up
 
Hi,

Is there a way to have excel create a backup file saved somewhere each time
the workbook is either opened or closed? I know there is the auto recover but
it doesn't really save a back up file that I could open when ever I need to.

Thanks,

Don Guillett[_2_]

Workbook back up
 
This is one I use.
Sub Backup() 'kept in personal.xls & assigned to toolbar button
On Error GoTo BackupFile
MkDir CurDir & "\Backup"
BackupFile:
With ActiveWorkbook
MyWB = .Path & "\BACKUP\" & .Name
.SaveCopyAs MyWB
.Save
End With
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Aris" wrote in message
...
Hi,

Is there a way to have excel create a backup file saved somewhere each
time
the workbook is either opened or closed? I know there is the auto recover
but
it doesn't really save a back up file that I could open when ever I need
to.

Thanks,



Aris

Workbook back up
 
Thanks! This was great. it worked perfectly.

"Don Guillett" wrote:

This is one I use.
Sub Backup() 'kept in personal.xls & assigned to toolbar button
On Error GoTo BackupFile
MkDir CurDir & "\Backup"
BackupFile:
With ActiveWorkbook
MyWB = .Path & "\BACKUP\" & .Name
.SaveCopyAs MyWB
.Save
End With
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Aris" wrote in message
...
Hi,

Is there a way to have excel create a backup file saved somewhere each
time
the workbook is either opened or closed? I know there is the auto recover
but
it doesn't really save a back up file that I could open when ever I need
to.

Thanks,


.



All times are GMT +1. The time now is 07:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com