docmd.outputto error

N

neo0210

Dear all,

When I use "docmd.outputto acOutputReport, Screen.ActiveReport.NAME,
acFormatXLS, GetProgDirPath + (Screen.ActiveReport.NAME) + ".xls", False" to
export report to excel file.
I can't open the excel file since it prompt " this file need repare,invalid
sheet name",and the sheet name is "recovered sheet1".
How can I get the right excel file when I use docmd.outputto?
and can I add the password to this excel file?
Thanks very much.
 

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

Top