Workbook back up

  • Thread starter Thread starter Aris
  • Start date Start date
A

Aris

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,
 
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
 
Thanks! This was great. it worked perfectly.

Don Guillett said:
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
(e-mail address removed)


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Recover data 2
Merge Multiple workbook sheets into one workbook 0
backing up shared workbook 4
document recovery 1
Prevent dialogue: "save changes"? 4
Windows 7 Post Recovery Issues 4
Excell 2021 0
Compatability mode 1

Back
Top