Need help please - Just learning VBA. Trying to write macro that will save file to orig location (not protected), then SAVEAS to new folder location, rename using cell CE3 as name along with time saved, and password protect this document (not original). Macro won't work - what am I doing wrong?
Sub SubmitReport()
'
' SubmitReport Macro
'
'
Sheets("ATB").Select
ActiveSheet.Unprotect
fName = Range("CE3") + " " + Format(Now(), "h:mm;@")
ThisWorkbook.SaveAS "F:\pataccts\SECRETARY\", fName, Password:="myatb",
WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
ActiveWorkbook.Close True
End Sub
<!-- end of AOLMsgPart_1_2c2cc7f0-476b-4900-b76c-82b250d49b36 --><STYLE>.AOLWebSuite .AOLPicturesFullSizeLink { height: 1px; width: 1px; overflow: hidden; } .AOLWebSuite a {color:blue; text-decoration: underline; cursor: pointer} .AOLWebSuite a.hsSig {cursor: default}</STYLE>'
' SubmitReport Macro
'
'
Sheets("ATB").Select
ActiveSheet.Unprotect
fName = Range("CE3") + " " + Format(Now(), "h:mm;@")
ThisWorkbook.SaveAS "F:\pataccts\SECRETARY\", fName, Password:="myatb",
WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
ActiveWorkbook.Close True
End Sub