put all the files into 1 folder, then make a form to run this code.
click a run button to begin this code, the code suppies the folder where all the worbooks are..
Code:
sub btnRun_click()
ImportAllFilesInDir( "c:\folder\")
end sub
Public Sub ImportAllFilesInDir(ByVal pvDir)
Dim vFil, vTargT
Dim i As Integer
dim sSql As String
Dim db 'As Database
Dim fso
Dim oFolder, oFile
On Error GoTo errImp
If Right(pvDir, 1) <> "\" Then pvDir = pvDir & "\"
sTbl = "xlFile"
Set db = CurrentDb
Set fso = CreateObject("Scripting.FileSystemObject")
Set oFolder = fso.GetFolder(pvDir)
For Each oFile In oFolder.Files
vFil = pvDir & oFile.Name
If InStr(sfile, ".xls") > 0 Then 'ONLY DO EXCEL FILES
DoCmd.TransferSpreadsheet acImport, sTBL, vFil , True
endif
Next
Set db = Nothing
Set fso = Nothing
Set oFile = Nothing
Set oFolder = Nothing
DoCmd.SetWarnings True
Exit Sub
errImp:
MsgBox Err.Description, vbCritical, "ImportAllFilesInDir():" & Err
End Sub