I have an Excel spreadsheet that may have up to 12 worksheets in it, depending on the month of the year. I would like to import all available sheets into Access 2002.
Using DoCmd.TransferSpreadsheet , , "GMImports", "I:\PSUProgs\Data\Aparts\PartsBucket\reports.xls", True will give me only the first sheet. If I place the sheet name (January 2004) + "!", in the range position, it will import the designated sheet without problem. However I really want all records from all worksheets.
The help files indicate TransferSpreadsheet should import all sheets by leaving the range blank. Does that mean an empty string, or just leave it off ?
Any ideas I am doing wrong?
Thanks, ibgary
Using DoCmd.TransferSpreadsheet , , "GMImports", "I:\PSUProgs\Data\Aparts\PartsBucket\reports.xls", True will give me only the first sheet. If I place the sheet name (January 2004) + "!", in the range position, it will import the designated sheet without problem. However I really want all records from all worksheets.
The help files indicate TransferSpreadsheet should import all sheets by leaving the range blank. Does that mean an empty string, or just leave it off ?
Any ideas I am doing wrong?
Thanks, ibgary