making a backup

  • Thread starter Thread starter Dennis
  • Start date Start date
D

Dennis

How can I make a copy of a workbook in another drive,
every time it is saved. I'd only want one copy which is
subsequently overwritten each time the original is saved

Thanks
 
This will create a sub directory in any directory and save a copy there as
well as save.

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
 

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

Back
Top