I have the following code as I wish to save a file with a password (using the variable 'FILENAME' but enable users to open the files as ReadOnly).
ActiveWorkbook.SaveAs filename:="z:\finance\travel\authorised forms\" & filename & ".xls", ReadOnly:=True, Password:=filename
I get the error
"Compile Error - Name Argument not Found"
Can anyone advise?
ActiveWorkbook.SaveAs filename:="z:\finance\travel\authorised forms\" & filename & ".xls", ReadOnly:=True, Password:=filename
I get the error
"Compile Error - Name Argument not Found"
Can anyone advise?