Hello,
I need to import multiple excel files located in a specific folder. I am able to import one and then delete it from the location (see code below) but I want to be able to do the same thing for all the excel files in that folder.
I am a VBA beginner and have search all over this forum and online but no luck. I want to learn so you help would be appreciated!
Thanks!!!
Private Sub Command1_Click()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "updates_temp_tbl", "c:\temp_imports\latest_updates_karen.xls", True
Kill "c:\temp_imports\latest_updates_karen.xls"
End Sub
I need to import multiple excel files located in a specific folder. I am able to import one and then delete it from the location (see code below) but I want to be able to do the same thing for all the excel files in that folder.
I am a VBA beginner and have search all over this forum and online but no luck. I want to learn so you help would be appreciated!
Thanks!!!
Private Sub Command1_Click()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "updates_temp_tbl", "c:\temp_imports\latest_updates_karen.xls", True
Kill "c:\temp_imports\latest_updates_karen.xls"
End Sub