Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing Several Files with a Macro

Status
Not open for further replies.
Jul 1, 2008
16
0
0
US
I have a report designed in Access. I have six tables that populate this report. The data for each table comes from six separate excel files. I have designed a macro that uses the TransferSpreadsheet to import the excel files. I wanted it as automated as possible. Here lies my problem. The file name that the Macro requires would have to be changed daily for each of the six files to be found. The files are named the same daily but stored according to date. So if it would prompt me for the date, I could enter "9/23/2008" and my hopes would be for it to import all six files because all six files would be in that "9/23/2008" folder.

Is this possible with the Macro?
 
Use VBA instead of a macro.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top