I am doing datatransfer from excel to access. In the spreasheet code line, I want to use active workbook name but it kept showing this is wrong. The latest running showed "Run-time Error 13" -Type Mismatch.
anybody knows what's wrong with the line code of ActiveWorkbook?
Thanks
appAccess.DoCmd.TransferSpreadsheet _
acImport, _
acSpreadsheetTypeExcel97, _
"Shipping", _
"ActiveWorkbook.Path &" \ " & ActiveWorkbook.Name", _
True, "TransferRange"
anybody knows what's wrong with the line code of ActiveWorkbook?
Thanks
appAccess.DoCmd.TransferSpreadsheet _
acImport, _
acSpreadsheetTypeExcel97, _
"Shipping", _
"ActiveWorkbook.Path &" \ " & ActiveWorkbook.Name", _
True, "TransferRange"