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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export Report to Excel ???

Status
Not open for further replies.

cutestuff

Technical User
Sep 7, 2006
162
CA
hi,

I have the following code on my command button :

DoCmd.OutputTo acOutputReport, "rpt4point2PID", acFormatXLS, "C:\Documents and Settings\jsantos\Desktop\SBPH_PID.xls"

It exports my sheet, but it's giving me this error:
"Renamed Invalid Sheet Name"

Does anyone know why and how to fix it?
Please?

Thank you!!!
 
Hello - While searching for my own answers, I ran across numerous posting concerning this behaviour in XL. Seems the export report function uses the report name to name the worksheet too. Try changing the report name to TEST, then do the export. Let me know what that does.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top