Exporting 'save formatted' spreadsheets in code

  • Thread starter Thread starter az_jackalope
  • Start date Start date
A

az_jackalope

If I export a query from the Access file menu to an Excel spreadsheet and
check the "save formatted" box, the resulting spreadsheet has gray labels,
one particular number field that has custom formatting in the Access table
retains that custom formatting in the spreadsheet.

I can manually format the spreadsheet that way too, but it's nicer if Access
has already done it for me, to keep it and save me the extra steps.

If I transferspreadsheet in code, it doesn't do that. Is there a way to
"save formatted" in the code?

And what the heck is the 'UseOA' argument??!

Thanks
 
you might try using the OutputTo action, rather than TransferSpreadsheet; it
may give you the result you're looking for. take a look at the topic in
Help, it gives a pretty thorough explanation of how the action works.

hth
 
That worked great - thanks a bunch! Now - do you know what the "UseOA" is
all about?
 

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

Back
Top