Date File Extension

  • Thread starter Thread starter NeonSky via AccessMonster.com
  • Start date Start date
N

NeonSky via AccessMonster.com

Hello All,

Would one be so kind as to tell me how to assign the present date to the end
of a file name when exporting a query to a .xls file as run in a macro?

Thanks!
 
Use an expression as the File Name argument in the macro:

="C:\MyFolder\QueryName" & Format(Date(),"mmddyyyy") & ".xls"
 

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