How do you make a backup file - .bak or MS equivalent?

T

Terry_BWL

I have been using Lotus. When you SAVE AS you are given the choice to make a
BAK (backup) file. Is there a similiar command in Excel? When I use SAVE AS
it just asks if I want to replace. Thanks for any help.
 
D

Don Guillett

Another approach saves the file in a backup folder.

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
 
G

George Gee

Hi Terry

File > Save as > Tools > General options,
checkmark in 'Always create backup'.

George Gee


*Terry_BWL* has posted this message:
 
T

Terry_BWL

Thanks to both of you for the help.

Don Guillett said:
Another approach saves the file in a backup folder.

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