G
Guest
Here is my case:
I need to import data from Excel files to an Access table. Each Excel file
may contain multiple spreadsheets (supposing all spreadsheets have same
columns). I tried to use DoCmd.TransferSpreadsheet. I could import data from
the first spreadsheet. It said we could use "Range" to specify multiple
spreadsheets. But I don't know exactly how many spreadsheets the current xls
file may have (different xls files have different numbers of spreadsheets).
Of course, I don't know those spreadsheet names either.
How can I complish those tasks in Access (VBA)?
I need to import data from Excel files to an Access table. Each Excel file
may contain multiple spreadsheets (supposing all spreadsheets have same
columns). I tried to use DoCmd.TransferSpreadsheet. I could import data from
the first spreadsheet. It said we could use "Range" to specify multiple
spreadsheets. But I don't know exactly how many spreadsheets the current xls
file may have (different xls files have different numbers of spreadsheets).
Of course, I don't know those spreadsheet names either.
How can I complish those tasks in Access (VBA)?