Saving in Two Locations

Sam asked if there was a way to save the same workbook to two separate locations. For instance, one copy could be saved to the normal network location, and the other to a folder on the local hard drive.

There are any number of ways that this can be done. For instance, you could create your own macro that saves two versions of the same workbook. The macro could be placed on the Quick Access Toolbar and clicked when you want to save both copies. (In other words, you would bypass the normal Save function all together.)

Another approach is to make a small adjustment to how Excel saves the workbook. For instance, the following macro would be added to the ThisWorkbook object for the workbook:

Private Sub Workbook_BeforeSave(ByVal _
  SaveAsUI As Boolean, Cancel As Boolean)
    With ThisWorkbook
        .SaveCopyAs ("c:BackupsBackup of " & .Name)
    End With
End Sub

This is an event handler, and it is triggered every time you go to do a save on the workbook. At that point, the macro is executed and a copy of the workbook is saved in the specified path on your local hard drive.