Output from Access 97 to Excel

DavidCroft

New Member
Joined
Oct 16, 2002
Messages
19
I'm using the OutputTo method in MS Access 97 to output a report to an Excel workbook. The workbook created opens fine in Excel 2000 but if I try to open it in Excel 2002 I get an Excel dialog saying errors detected "renamed invalid sheet name". I have a user with Access 97 and Excel 2002 on her machine and need to get them to work together. Incidentally there is a Microsoft KB article that indicates that the format output by Access 97 is Excel 5.0/95 (not Excel 97 as the Help says and you might expect). I guess there is some incompatability between the Excel 5.0/95 format and Excel 2002?
Thanks in advance for any help,
David
 
Why not just export a query or table?

DoCmd.TransferSpreadsheet acExport ?

http://www.mrexcel.com/board2/viewtopic.php?t=46578&start=10

You can then use the same path (set up a string constant) to open the file from Access (early or late bound) and clean it up programmatically from Access with a hidden instance of Excel. I've found this to be relatively quick even with a lengthy procedure...

Either that or use MS query or a Pivot Query or something to pull Access data from Excel... There are definitely options for pulling and pushing between Excel and Access. Really sophisticated queries probably ought to processed in Access and pushed to Excel...
 
Upvote 0

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,221,539
Messages
6,160,413
Members
451,644
Latest member
hglymph

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top