F
Francis Hookham
One of my spreadsheets has the following macro writen sometime ago with help
from a MVP:
Application.DisplayAlerts = False 'so a previous version of same date can
be overwritten
ActiveWorkbook.SaveAs FileName:="RotaryCalendar" & Format(Date,
"ddmmmyy"), FileFormat:=xlNormal, Password:= _
"", WriteResPassword:="", ReadOnlyRecommended:=False,
CreateBackup:=False
Application.DisplayAlerts = True 'to revert back to being alerted
which is fine
In another spreadsheet I should like to include a similar macro to Save
As... the workbook with concatenated name/ref number/date
The name held in say B3 and the ref number held in say D7 and the date as
above
Not sure how to do this - maybe I have to set two variables which will pick
up the name and ref number but you usually have smarter direct ways of
gathering this sort of thing - please!
Francis Hookham
PS
Can I/should I leave out some/all of this since password is not needed not
backup:
Password:= "", WriteResPassword:="", ReadOnlyRecommended:=False,
CreateBackup:=False
from a MVP:
Application.DisplayAlerts = False 'so a previous version of same date can
be overwritten
ActiveWorkbook.SaveAs FileName:="RotaryCalendar" & Format(Date,
"ddmmmyy"), FileFormat:=xlNormal, Password:= _
"", WriteResPassword:="", ReadOnlyRecommended:=False,
CreateBackup:=False
Application.DisplayAlerts = True 'to revert back to being alerted
which is fine
In another spreadsheet I should like to include a similar macro to Save
As... the workbook with concatenated name/ref number/date
The name held in say B3 and the ref number held in say D7 and the date as
above
Not sure how to do this - maybe I have to set two variables which will pick
up the name and ref number but you usually have smarter direct ways of
gathering this sort of thing - please!
Francis Hookham
PS
Can I/should I leave out some/all of this since password is not needed not
backup:
Password:= "", WriteResPassword:="", ReadOnlyRecommended:=False,
CreateBackup:=False