Hello
I am trying to save the file with a value from a cell followed by the current date
example: filename 5-26-2011
Here's the code I have:
ActiveWorkbook.SaveAs Filename:=Range("O29").Value & Format(Now(), "mm-dd-yyyy")
When I do that an error pops up:
Compile error:
Wrong number of arguments or invalid property assignment
can anyone help?
I am trying to save the file with a value from a cell followed by the current date
example: filename 5-26-2011
Here's the code I have:
ActiveWorkbook.SaveAs Filename:=Range("O29").Value & Format(Now(), "mm-dd-yyyy")
When I do that an error pops up:
Compile error:
Wrong number of arguments or invalid property assignment
can anyone help?