M
Mo
I support an Access 97 application that currently uses
Macros to output query results to Excel 97. We've
recently run into a problem where we cannot export more
than 16,384 rows. Excel 97 should accept up to 65,536.
It appears that when using the macro Excel 97 creates the
worksheet as Excel 95 vs 97. I can manually export as
Excel 97 but I need to automate it for our users.
I've tried to replace the macro with VBA code using
TransferSpreadsheet but I get the msg "Operation is not
supported for this type of object".
Here's what I'm using in my code:
DoCmd.OpenQuery "qryname",AcViewNormal,AcEdit
DoCmd.TransferSpreadsheet
acExport,acSpreadsheetTypeExcel9,"qryname","pathname.xls"
I've also tried several variations of True/False
DoCmd.TransferSpreadsheet
acExport,acSpreadsheetTypeExcel9,"qryname","pathname.xls",
True,,False
Using True,,False I get msg "Method or Data Member not
found"
Any suggestions would be greatly appreciated. Thanks.
Macros to output query results to Excel 97. We've
recently run into a problem where we cannot export more
than 16,384 rows. Excel 97 should accept up to 65,536.
It appears that when using the macro Excel 97 creates the
worksheet as Excel 95 vs 97. I can manually export as
Excel 97 but I need to automate it for our users.
I've tried to replace the macro with VBA code using
TransferSpreadsheet but I get the msg "Operation is not
supported for this type of object".
Here's what I'm using in my code:
DoCmd.OpenQuery "qryname",AcViewNormal,AcEdit
DoCmd.TransferSpreadsheet
acExport,acSpreadsheetTypeExcel9,"qryname","pathname.xls"
I've also tried several variations of True/False
DoCmd.TransferSpreadsheet
acExport,acSpreadsheetTypeExcel9,"qryname","pathname.xls",
True,,False
Using True,,False I get msg "Method or Data Member not
found"
Any suggestions would be greatly appreciated. Thanks.