insert date in filename

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
 

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

Similar Threads


Top