Export to Excel without opening File (1 Viewer)

Drevlin

Data Demon
Local time
Today, 16:08
Joined
Jul 16, 2002
Messages
135
As the subject says I'm looking to export a file to excel.

I'm currently using:
DoCmd.OutputTo

This, however, opens the file in Excel. Is there some way of exporting to Excel without it directly opening the program?

Thanx in advance.
 

[nateobot]

Registered User.
Local time
Today, 10:08
Joined
Jul 15, 2002
Messages
64
Not that i know of.

You could always set it to false so that the user does not see Excel being opened.

Code:
DoCmd.OutputTo acReport, "rptTest", "Microsoft Excel (*.xls), RptPath, False
 

Drevlin

Data Demon
Local time
Today, 16:08
Joined
Jul 16, 2002
Messages
135
That's exactly what I was looking for. I was just being brain dead.

Thanks.
 

Users who are viewing this thread

Top Bottom