TransferSpreadsheet Formatting

G

Guest

I have briefed both DoCmd.TransferSpreadsheet and DoCmd.OutputTo. Both have
their strengths and their purpose.

DoCmd.OutputTo Method is great if one is transferring a single Table or
Query to a spreadsheet. However, I need to export several Tables to different
worksheets in the same Excel file. This is easily done using the
DoCmd.TransferSpreadsheet method. There is, however, one small problem.

It would appear that the DoCmd.TransferSpreadsheet method does not offer the
'Save Formatted' option whereas the DoCmd.OutputTo option does.

Other than using a considerable amount of code to actually open up the Excel
file and adjust the formatting, is there another method/parameter so that the
DoCmd.TransferSpreadsheet method exports the formatting similar to the "Save
Formatted" feature?

Thanks for the help.

Pat
 
K

Ken Snell \(MVP\)

see reply in externaldata ng.

--

Ken Snell
<MS ACCESS MVP>

"Pat (Disciple of Aloof-ism)"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top