I have a program that is processing multiple worksheets in an excel spreadsheet. It appears that an excel user can use the "#" sign in the worksheet name. But when access tries to read it,
The microsoft database jet engine could not read the object ... it then gives the object name leaving out the # sign.
Does anyone have any ideas to get around this issue, other than telling the user not to use the # sign in the worksheet name?
The code is essentially this:
strFileName = filePath & fileName
Set objWorkbook = objExcel.Workbooks.Open(strFileName)
Set colWorksheets = objWorkbook.Worksheets
For Each objWorksheet In colWorksheets....
DoCmd.TransferSpreadsheet acImport, 8, "tblTempMfgProductData", strFileName, False, strWorkSheetName
Thanks
The microsoft database jet engine could not read the object ... it then gives the object name leaving out the # sign.
Does anyone have any ideas to get around this issue, other than telling the user not to use the # sign in the worksheet name?
The code is essentially this:
strFileName = filePath & fileName
Set objWorkbook = objExcel.Workbooks.Open(strFileName)
Set colWorksheets = objWorkbook.Worksheets
For Each objWorksheet In colWorksheets....
DoCmd.TransferSpreadsheet acImport, 8, "tblTempMfgProductData", strFileName, False, strWorkSheetName
Thanks