insert date in filename

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I keep getting a compiler error with this statement. I am launching it from a
command button on an excel document

ChDir "C:\Documents and Settings\udmstaff\My Documents\Ettline\Price Updates"
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\udmstaff\My Documents\Ettline\Price
Updates\Price Update_" & _
Format(Date, "mmddyyyy") & ".xls",
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
 
Hi
I don't get a compile error. What error do you get exactly?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top