You can use the Dir() function to get a list of all the spreadsheet files in
the directory and loop through that list to get data from all the
spreadsheets. You will find detailed information on the Dir function in VBA
help, including how to loop through the list.
You will need an append query that will copy the data from the spreadsheet
into your table. It doesn't matter what the names of the spreadsheet files
are, you can give each of them the same table name.
So here is the sequence of events:
Using Dir, get the name of the next spreadsheet.
Using TransferSpreadsheet, link to the spreadsheet file using a consistent
table name.
Run the Append query to copy the data into the table.
Use the DeleteObject method to delete the link to the spreadsheet
Repeat until all files have been processed.