Save as backup

G

Gary

Is there a way to save a current workbook as a backup into
a "temp" folder without saving the actual workbook.
 
D

Don Guillett

Here is one I use to save file and save a backup in a backup folder in
whatever directory. You may modify to suit.

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

Top