Export To Excel and Save Formatting

M

mroby

I have a database In which I am exporting a table to Excel using

DoCmd.TransferSpreadsheet acExport, 8, "tblExport",
"C:\Burn\TestExport.xls", True, ""

If I export this manually I can click the 'Save Formatting' button and all
works well. How do I add this addtional feature into my code above?
 
J

John Nurick

Try using DoCmd.OutputTo instead.

I have a database In which I am exporting a table to Excel using

DoCmd.TransferSpreadsheet acExport, 8, "tblExport",
"C:\Burn\TestExport.xls", True, ""

If I export this manually I can click the 'Save Formatting' button and all
works well. How do I add this addtional feature into my code above?
 

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