I am importing a spreadsheet useing the following code :-
where StrXlsAddress is a string holding the address of the spreadsheet, and StrXlsSheet is the name of a specific worksheet within that spreadsheet.
It's giving me an error which says it cannot find the object which relates to the name of the individual sheet within the spreadsheet.
Anyone have any clues please?
solo7![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)
Code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "TblTemp", StrXlsAddress, True, StrXlsSheet
where StrXlsAddress is a string holding the address of the spreadsheet, and StrXlsSheet is the name of a specific worksheet within that spreadsheet.
It's giving me an error which says it cannot find the object which relates to the name of the individual sheet within the spreadsheet.
Anyone have any clues please?
solo7
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)