Saving Date in file name automatically

J

John

I want to add the current date to a saved file automatically.

ActiveWorkbook.SaveAs Filename:= _
"C:\DailySummaryReportPFL(I want to add date automatically
here)", _
FileFormat:=xlText, CreateBackup:=False
 
S

Steve Schapel

John,

The focus of this newsgroup is macros in Access, the database product.
Sounds like your question relates to Excel, and you would have a better
chance of a good answer in an Excel newsgroup.
 
R

Ron2006

ActiveWorkbook.SaveAs Filename:= _
"C:\DailySummaryReportPFL " & year(date()) &
format(month(date()),"00") & format(day(date()),"00") ), _
FileFormat:=xlText, 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

Top