"Analyze It with Ms Excel" filename Name

R

robbinma

Hello,

Is there a way of automatically calling this and specifiying the Excel
filename?
I want to send out an Excel version of a report and would like to
change the name of the report to reflect the data in there.
At the moment the filename is predetermined by the report name.
I don't want to change the report name as it is contents of the report
that define the name.

If possible I would like to avoid using SendKeys or something similar.

Regards,

Mark
 
R

Roxie Aho

You might try OutputTo on the click event of a command
button on form. Code would be something like:
DoCmd.OutputTo acOutputReport, "rptCertificate",
acFormatXLS, "F:\Access\Cert.xls", False

Look at the Visual Basic for Applications help topic on
OutputTo to see your options.

Roxie Aho
-----Original Message-----
Hello,

Is there a way of automatically calling this and specifiying the Excel
filename?
I want to send out an Excel version of a report and would like to
change the name of the report to reflect the data in there.
At the moment the filename is predetermined by the report name.
I don't want to change the report name as it is contents of the report
that define the name.

If possible I would like to avoid using SendKeys or something similar.

Regards,

Mark



------------------------------------------------
 
R

robbinma

Problem solved.

Found the following link on msdn which points to Output

' http://tinyurl.com/tp83

The following syntax seems to work:
DoCmd.OutputTo acOutputReport, "validation_report_rep", "microsoft
excel", "c:\valid_rep.xls", True

Regards,

Mark
 
R

Rory

Problem solved.

Found the following link on msdn which points to Output

' http://tinyurl.com/tp83

The following syntax seems to work:
DoCmd.OutputTo acOutputReport, "validation_report_rep", "microsoft excel",
"c:\valid_rep.xls", True

Regards,

Mark



------------------------------------------------
~~ Message posted
~~ View and post usenet messages directly


WILL YOU SHUT THE **** UP? GOD YOU A FUCKING RETARD!? IF NOT THEN WHAT THE
**** ARE YOU? **** YOU ALL IF YOU AINT DOWN WIT DA CLOWN!
 

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