G
Guest
Thanks you for any help you can give
I am importing data from several worksheets into an existing table
The worksheet names have spaces in them so I am putting single quotes around the sheet name in the Docmd.Transferspreadsheet command. However, I am also giving a specific range of cells to import and I get the error message that it could not be found
My line of code looks like this
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "TableName", XLS_Name, -1,
"'" & curSheetName & "'!A1:AF27520
Do I need to put single quotes around the range of cells or around the whole string or what
Thanks.
I am importing data from several worksheets into an existing table
The worksheet names have spaces in them so I am putting single quotes around the sheet name in the Docmd.Transferspreadsheet command. However, I am also giving a specific range of cells to import and I get the error message that it could not be found
My line of code looks like this
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "TableName", XLS_Name, -1,
"'" & curSheetName & "'!A1:AF27520
Do I need to put single quotes around the range of cells or around the whole string or what
Thanks.