APPENDING DATE AND TIME TO FILE

J

jrp444

I need to export a table that I build back to windows, but I need the name of
the file to have the date & time. Is there a way to do this?????
 
K

Klatuu

Assuming you are programmatically using TransferSpreadsheet, TransferText,
etc, you can build the file name with the date and time:
Dim MyFileName as string
MyFileName = "C:\SomeFolder\MyFileName" & _
Format(Now(), "yyyymmddhhmmss")
 
J

jrp444

Thanks!

Klatuu said:
Assuming you are programmatically using TransferSpreadsheet, TransferText,
etc, you can build the file name with the date and time:
Dim MyFileName as string
MyFileName = "C:\SomeFolder\MyFileName" & _
Format(Now(), "yyyymmddhhmmss")
 

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