Hello dbfromnewjersey,
Assuming you want all Excel files in a given folder...
Dim fso As Object, fld As Object, fil As Object
Set fso = CreateObject("Scripting.FIleSystemObject
Set fld = fso.GetFolder("c:\folder\subfolder")
For Each fil In fld.Files
If LCase(Right(fil.Name, 4)) = ".xls" Then
DoCmd.TransferSpreadsheet TransferType:=acImport, _
TableName:= "NameOfTable", FileName:=fil.Path, _
HasFieldNames:=True
End If
Next
Set fil = Nothing
Set fld = Nothing
Set fso = Nothing
Regards,
Patrick