Hi all,
I'm taking my first steps into VB code and had some success, until now.
I found some code on here for saving a workbook to multiple locations with the addition to the file name of the date
And I recorded a Macro where I lock all the cells, protect the workbook and all the sheets and save that to another drive as a read only file with password to modify.
What I'd like to do is add to the recorded Macros generated file name Now " yyyy-mm-dd". Haven't worked out how, it gets to the part about password:="" and stops.
Ultimatly I want the the two as one so that it generates the BU with the Now first, then adds all the protection to the workbook and saves the read only version to the other drive.
I'm confident it can do it, I'm just not sure how to tell it to.
Thanks in advance,
I'm taking my first steps into VB code and had some success, until now.
I found some code on here for saving a workbook to multiple locations with the addition to the file name of the date
Code:
ActiveWorkbook.SaveCopyAs Filename:="O:\MRC\Development" & _
bdFileName & " BU " & Format(Now, " yyyy-mm-dd") & _
".xls"
And I recorded a Macro where I lock all the cells, protect the workbook and all the sheets and save that to another drive as a read only file with password to modify.
What I'd like to do is add to the recorded Macros generated file name Now " yyyy-mm-dd". Haven't worked out how, it gets to the part about password:="" and stops.
Ultimatly I want the the two as one so that it generates the BU with the Now first, then adds all the protection to the workbook and saves the read only version to the other drive.
I'm confident it can do it, I'm just not sure how to tell it to.
Thanks in advance,