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
What I have now is:
DoCmd.OutputTo acOutputReport, "Report", acFormatXLS, "file path", True