aziz rasul
Active member
- Local time
- Today, 17:09
- Joined
- Jun 26, 2000
- Messages
- 1,935
I have a file called "ENT Figures.xls", which contains a worksheet called "Pivot Calculation". The following is the code I'm using to import the worksheet where the filename is in a recordset. I have NO CONTROL over the filename or worksheet names.
I obtain error 3011 - Could not find the object 'Pivot Calculation$'.
Code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblTemp", _
"C:\Theatres Database\Specialty\" & rstTheatreSpecialities!Spreadsheetname, _
False, "'Pivot Calculation!'"
I obtain error 3011 - Could not find the object 'Pivot Calculation$'.