R
ragtopcaddy via AccessMonster.com
I've done this before but I can't remember exactly how to do it.
Here's the line of code:
docmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Op_Com", "T:\
Storage\1.Reporting\DB\ReportPivots.xls", False, "A2"
I have a query, "Op_Com" and a corresponding worksheet, "Op_Com". This is
just the latest edit to the code. Nothing I've tried has worked. I have a
named range, "OpCom" on the sheet "Op_Com", but addressing that causes other
errors. The error I'm getting with this iteration is: '3011' Could not find
the object "A2".
I've tried leaving headers in the named range on the worksheets, no headers,
using the range name, and many other attempts, without success.
Here's the line of code:
docmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Op_Com", "T:\
Storage\1.Reporting\DB\ReportPivots.xls", False, "A2"
I have a query, "Op_Com" and a corresponding worksheet, "Op_Com". This is
just the latest edit to the code. Nothing I've tried has worked. I have a
named range, "OpCom" on the sheet "Op_Com", but addressing that causes other
errors. The error I'm getting with this iteration is: '3011' Could not find
the object "A2".
I've tried leaving headers in the named range on the worksheets, no headers,
using the range name, and many other attempts, without success.