Hi,
I am trying to import any spreadsheet that is in a given folder in this case C:\temp\CI.
I can only seem to import 1 at a time how do a loop? and how do I make the table name the same as the XLS file it is importing?
Private Sub Command0_Click()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel97, StrFileName, "C:\Temp\CI\*.xls", True
End Sub
I am trying to import any spreadsheet that is in a given folder in this case C:\temp\CI.
I can only seem to import 1 at a time how do a loop? and how do I make the table name the same as the XLS file it is importing?
Private Sub Command0_Click()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel97, StrFileName, "C:\Temp\CI\*.xls", True
End Sub