How to Append Date to Filename??

  • Thread starter Thread starter rich808
  • Start date Start date
R

rich808

Guest
I'm making a macro to output a report to an Excel spreadsheet using OutputTo and would like to add the date to the filename since this is done each day and the files need to be different. So I'd have something like "Output" as the base filename and "Output20050628" as the final filename. Would someone please help me out on this? Thanks in advance.
 
"Output" & Format(Date(),"yyyymmdd") & ".xls"

Dave
 
Thanks Dave and MStef! I tried what Dave sent and it worked perfectly!
 

Users who are viewing this thread

Back
Top Bottom