Hello,
I need to import a specific tabsheet from an Excel file into my DB. I'm using the following method:
This works fine, but only when the length of the tab name (including spaces) is less than 31 characters. And guess what, it's not...
Of course I can shorten the name in the Excel file, but this is not desirable. I prefer not to alter the source file.
So, is there a way to import the file (using this method) while the length of the tab name is more than 30 characters???
Any help will be greatly appreciated! Thanks!
I need to import a specific tabsheet from an Excel file into my DB. I'm using the following method:
Code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9,
"[Name_of_Access_table]", "[Location_of_Excel_file]", False,
"[[COLOR="Red"]Name_of_tab[/COLOR]]![Columns]"
This works fine, but only when the length of the tab name (including spaces) is less than 31 characters. And guess what, it's not...
Of course I can shorten the name in the Excel file, but this is not desirable. I prefer not to alter the source file.
So, is there a way to import the file (using this method) while the length of the tab name is more than 30 characters???
Any help will be greatly appreciated! Thanks!