export query and add date to file name?

G

George

Hi,
I would like to attach the date to the file name when i export a query. Is
this possible to do in a transfer spreadsheet macro? e.g file is called
"mm-dd-yyyy Account qry".
Thanks
George
 
J

John Nurick

It's possible to do this (at least in fine weather) in a macro by using
an expression like this for the "File Name" argument:

="C:\Temp\" & Format(Date(),"mm-ddyyyy") & " XXX.xls"

I seldom use macros and don't if there are any subtle gotchas.
 

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