Include today's date in csv file name

G

Guest

I'm using transfertext macro to create a .csv file. I need to include
today's date as part of the file name. So the structure of the file name
would be:
[ Standard Prefix][today's date].csv

How do I get it to add today's date?

Thank you!
Cathy
 
K

Ken Snell \(MVP\)

Use an expression for the FileName argument:

="C:\MyFolderName\" & Format(Date(),"mmddyyyy") & ".csv"
 
G

Guest

Thanks Ken!

You are right on the mark... as always!



Ken Snell (MVP) said:
Use an expression for the FileName argument:

="C:\MyFolderName\" & Format(Date(),"mmddyyyy") & ".csv"

--

Ken Snell
<MS ACCESS MVP>

Cathy said:
I'm using transfertext macro to create a .csv file. I need to include
today's date as part of the file name. So the structure of the file name
would be:
[ Standard Prefix][today's date].csv

How do I get it to add today's date?

Thank you!
Cathy
 

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