Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keep conditional formatting when exporting to excel

Status
Not open for further replies.

storl2

Programmer
Jun 3, 2004
47
US
I have a command button that exports a report to a new Excel file (or overwrites the existing one, if it's there), which works fine, but I have some conditional formatting in the report that the OutputTo command does not keep. The strange part is that if I export using file>export, it keeps the some of the formatting fine. Is there some parameter or other module that I need to throw in there?

What I have now is:

DoCmd.OutputTo acOutputReport, "Report", acFormatXLS, "file path", True
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top