Hello,
Not sure what's going on with this code...
It was working fine for months, but since I reinstalled Win7 and all my programs, it's gone wrong.
I've altered the locations of where to save the files, as those had changed, but the macro now opens a password dialogue box for a previous file version.
I've been messing around with this for an hour, so I think this is the version that was working previously.
any ideas?
Not sure what's going on with this code...
It was working fine for months, but since I reinstalled Win7 and all my programs, it's gone wrong.
I've altered the locations of where to save the files, as those had changed, but the macro now opens a password dialogue box for a previous file version.
I've been messing around with this for an hour, so I think this is the version that was working previously.
any ideas?
Code:
Sub SaveAs()
'
' SaveAs Macro
ActiveWorkbook.SaveAs FileName:= _
"E:\Ians documents\_Excel\Cashbook\Cashbook 8 as at " & Format(Date, "dd mm yy") & Format(Time, " hhmm") & ".xlsm", _
Password:="xxxxxx", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWorkbook.SaveCopyAs FileName:= _
"C:\Users\Ian\Desktop\" & "Cashbook 8 as at " & Format(Now(), "dd mm yy") & Format(Time, " hhmm") & ".xlsm"
End Sub