Current date in file name

A

ACNJim

I am using a macro to output the results of a query as an excel file. i would
the the current date when the macro is run to be in the file name. is this
possible? If not is it possible to have the current date in the name of the
query, then i can use the export option in my macro.
 
S

Steve Schapel

Jim,

In the Output File argument of your OutputTo macro action, something
along these lines:

="C:\YourFolder\Bla_" & Format(Date(),"yymmdd") & ".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

Top