jasgot
New Member
- Joined
- Jul 16, 2002
- Messages
- 30
- Office Version
- 365
- 2019
- 2016
- 2013
- 2010
- Platform
- Windows
When I use the file menu to SAVE AS, it saves fine, this macro, however, fails with this message:
"Run time Error 1004
Operation Failed. Blah...BlahPrices.xls is write reserved."
Here is the macro:
If Application.UserName = "Jason Gottschalk" Then
Application.EnableEvents = False
ActiveSheet.Unprotect
Range("B73").Select
ActiveCell.FormulaR1C1 = ""
Range("G79").Select
ActiveCell.FormulaR1C1 = "0"
Range("B69").Select
ActiveCell.FormulaR1C1 = ""
Range("D69").Select
ActiveWorkbook.SaveAs Filename:="P:SYO Sales DocsPrices.xls"
ActiveWorkbook.Windows(1).Caption = ActiveWorkbook.FullName
Application.EnableEvents = True
End If
Any thoughts on why the macro fails, but I can do it manually?
"Run time Error 1004
Operation Failed. Blah...BlahPrices.xls is write reserved."
Here is the macro:
If Application.UserName = "Jason Gottschalk" Then
Application.EnableEvents = False
ActiveSheet.Unprotect
Range("B73").Select
ActiveCell.FormulaR1C1 = ""
Range("G79").Select
ActiveCell.FormulaR1C1 = "0"
Range("B69").Select
ActiveCell.FormulaR1C1 = ""
Range("D69").Select
ActiveWorkbook.SaveAs Filename:="P:SYO Sales DocsPrices.xls"
ActiveWorkbook.Windows(1).Caption = ActiveWorkbook.FullName
Application.EnableEvents = True
End If
Any thoughts on why the macro fails, but I can do it manually?