T
TimWal
Hey guys,
I am wondering if anyone can help me, I have a macro to save a copy of
an excel spreadsheet that works fine in Excel 2002 but in 2003 gives a
debug error.
The macro is as follows -
Sub Save_to_History()
Dim BackupFileName As String
BackupFileName = Range("openfile")
If MsgBox("Are you sure you want to save to history?", vbYesNo +
vbCritical, "WARNING!") = vbYes Then
ActiveWorkbook.Save
ActiveWorkbook.SaveCopyAs ("C:\data\forms\history\" & Range("o3"))
End If
End Sub
Basically it does not like the BackupFileName line at the moment.
Any help that anyone can give would be greatly appreciated.
Thanks
Tim Wallace
I am wondering if anyone can help me, I have a macro to save a copy of
an excel spreadsheet that works fine in Excel 2002 but in 2003 gives a
debug error.
The macro is as follows -
Sub Save_to_History()
Dim BackupFileName As String
BackupFileName = Range("openfile")
If MsgBox("Are you sure you want to save to history?", vbYesNo +
vbCritical, "WARNING!") = vbYes Then
ActiveWorkbook.Save
ActiveWorkbook.SaveCopyAs ("C:\data\forms\history\" & Range("o3"))
End If
End Sub
Basically it does not like the BackupFileName line at the moment.
Any help that anyone can give would be greatly appreciated.
Thanks
Tim Wallace