rob_sheeds
Board Regular
- Joined
- Dec 9, 2010
- Messages
- 57
I have saved this and another sub in my personal workbook, but it wont run when I press Ctrl + Shift + e
Can anyone please help
Public Sub Open_Unprotect_SaveAs()
Application.OnKey "^+e", "Unprotect_SaveAs()"
End Sub
Public Sub Unprotect_SaveAs()
'
' Unprotect and Save as .xls Macro
Dim MyString As String
ActiveSheet.Unprotect
ActiveWorkbook.Unprotect
MyString = Range("C4") & " " & Range("C5") & " " & Range("D4")
FileDrive = "R:\EOM GL Reporting\Franchising\P&L's to be uploaded\2012\29082011"
ActiveWorkbook.SaveAs Filename:=MyString, FileFormat:=56
End Sub
Can anyone please help
Public Sub Open_Unprotect_SaveAs()
Application.OnKey "^+e", "Unprotect_SaveAs()"
End Sub
Public Sub Unprotect_SaveAs()
'
' Unprotect and Save as .xls Macro
Dim MyString As String
ActiveSheet.Unprotect
ActiveWorkbook.Unprotect
MyString = Range("C4") & " " & Range("C5") & " " & Range("D4")
FileDrive = "R:\EOM GL Reporting\Franchising\P&L's to be uploaded\2012\29082011"
ActiveWorkbook.SaveAs Filename:=MyString, FileFormat:=56
End Sub