Hi All,
I have read multiple posts on this site about the above listed method, but I cannot get mine to work, what do I have incorrect?
I get an error message saying
Microsoft Jet database engine could not find the object 'Sheet2'.
I have checked in the VBA editor of the Excel Sheet and the name is Sheet2, I also tried renaming the sheet to EligiblityInformation and referencing it that way, I still got the same error. Any suggestions?
I have read multiple posts on this site about the above listed method, but I cannot get mine to work, what do I have incorrect?
Code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Internet Eligibility Information", _
FileName, 1, "Sheet2"
I get an error message saying
Microsoft Jet database engine could not find the object 'Sheet2'.
I have checked in the VBA editor of the Excel Sheet and the name is Sheet2, I also tried renaming the sheet to EligiblityInformation and referencing it that way, I still got the same error. Any suggestions?