Wouldn't you want to copy your workbook to that location when you save it--not
when you open it?
I put this code behind the ThisWorkbook module:
Option Explicit
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Application.OnTime Now + TimeSerial(0, 0, 3), "SaveACopy"
End Sub
Tnen in a general module, I put this code:
Option Explicit
Sub SaveACopy()
Dim myPath As String
myPath = "c:\my documents\excel\test\"
With ThisWorkbook
If .Saved Then
On Error Resume Next
.SaveCopyAs Filename:=myPath & .Name
If Err.Number <> 0 Then
MsgBox "Something bad happened"
Err.Clear
Else
MsgBox "Also saved to: " & myPath & .Name
End If
On Error GoTo 0
End If
End With
End Sub
If you save your workbook, then it does the SaveCopyAs to the location of your
choice (about 3 seconds after the save).