Creating a New File

G

Guest

I'm exporting data from Access to excel. I have an append query that pulls
the info that I want to export, and I have a Macro that runs the export. I
was wondering if there was a way that Excel can automatically create a new
file everyday this process runs?
 
J

John Nurick

Try using an expression like this for the filename argument in the
macro:

="D:\Folder\File\FILE" & Format(Date(), "yyyymmdd") & ".xls"
 
G

Guest

John,
In the output file argument of the macro I have

\\lssmil001\grads\ssb_apps\development\inctrack3 & Format(Date(),â€yyyymmddâ€)
& “rd_export.xlsâ€

but it doesn't seem to work. Am I missing something?
 
R

Ronald W. Roberts

nmarano said:
John,
In the output file argument of the macro I have

\\lssmil001\grads\ssb_apps\development\inctrack3 & Format(Date(),â€yyyymmddâ€)
& “rd_export.xlsâ€

but it doesn't seem to work. Am I missing something?

:

\\lssmil001\grads\ssb_apps\development\inctrack3 & Format(Date(),â€yyyymmddâ€)
& “rd_export.xlsâ€

Try this
"\\lssmil001\grads\ssb_apps\development\inctrack3" &
Format(Date(),â€yyyymmddâ€)

& “rd_export.xlsâ€

Note the quote as the first character and after inctrack3

Ron
 
G

Guest

Thanks for the help. I ended up coding it into the module instead of using
the Macro. The code you gave worked in the module. Thanks again
Nick
 

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