Can someone please tell me where I am going wrong. I want to import a single worksheet from a workbook using Transferspreadsheet. This is what I have so far:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblTemp", False, variableSheetName
I think there should be an exclamation mark at the end of this statement but if I put it in it doesn't like it.
Can you see what's wrong?
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblTemp", False, variableSheetName
I think there should be an exclamation mark at the end of this statement but if I put it in it doesn't like it.
Can you see what's wrong?