platypus71
Technical User
Ok, I searched for posts and found very little actual code to give me an idea on how to do this.
I have several spreadsheets, all with different names, all will be generated multiple times and have new names each time. All spreadsheets have the same column headers and columns. I need a way to import the data from *.xls into my existing table.
I am assuming I need something like:
I wasn't sure if String was the right variable to use for the filename. I also wasn't sure how to get it to cycle through the files in that folder.
Any help would be appreciated.
I have several spreadsheets, all with different names, all will be generated multiple times and have new names each time. All spreadsheets have the same column headers and columns. I need a way to import the data from *.xls into my existing table.
I am assuming I need something like:
Code:
Function AppendSpreadsheets()
Dim strfile As String
DoCmd.TransferSpreadsheet acImport, 8, Table1, "C:\Repository\" & strfile, True
End Function
Any help would be appreciated.