I have a report that I export to excel by using:
DoCmd.OutputTo acOutputReport, "rptletterdate", acFormatXLS, "H:\Excel\GovernmentManagedCare\rptletterdate.xls", True
This works fine, but every time I export the file, I get a msgbox in Excel that tells me "File error. Some number formats may have been lost."
I understand that the formatting does not get exported to Excel and that's fine...it's not affecting this particular set of data in any noticeable way. I just would like to turn off the annoying warning msg once Excel opens up. Isn't there a way to do this through VBA?
Thanks for any suggestions!
DoCmd.OutputTo acOutputReport, "rptletterdate", acFormatXLS, "H:\Excel\GovernmentManagedCare\rptletterdate.xls", True
This works fine, but every time I export the file, I get a msgbox in Excel that tells me "File error. Some number formats may have been lost."
I understand that the formatting does not get exported to Excel and that's fine...it's not affecting this particular set of data in any noticeable way. I just would like to turn off the annoying warning msg once Excel opens up. Isn't there a way to do this through VBA?
Thanks for any suggestions!