Export table or Query with Date

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

Guest

How can I export a table or query with the current date appended to the end
or beginning of the file name?
 
= MyFileName & Format(date,"Short Date")
or what ever date format you want.
 
I think you'd need Replace("/", "_", Format(Date,"Short Date")) & ".ext",
since you can't have a forward slash as part of a file name.

HTH;

Amy
 
My question is similar to this but I am trying to add the file extension
using TransferSpreadsheet in macros. Is there a way to do this? Can someone
walk me through doing it another way (keeping in mind my skilss are decent
but not expert!).
 
You are correct, Amy. I did not stop to think about that. Thanks for the
catch.
 

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