I had to remove the ".xls" on the file names to use this.
Access doesn't like period in table names. You might be
able to trim that off. I hope this can help
This creates the tables with the same name as in the
directory C:\testimport\ without the ".xls"
Private Sub Command0_Click()
Dim filename As String
filename = Dir("c:\testimport\*.*")
Do Until filename = ""
DoCmd.TransferSpreadsheet acImport, 8, filename,
"c:\testimport\" & filename, True, ""
filename = Dir
Loop
End Sub