Re:coding to export to Excel
- From: vseale <vseale@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Apr 2005 13:44:10 -0700
To export multiple reports ,just add an additional line in your sub
referencing the name of the next report
Private Sub Report_1_Click()
DoCmd.OutputTo acOutputReport, "Report1", acFormatXLS, , -1
DoCmd.OutputTo acOutputReport, "Report2", acFormatXLS, , -1
End Sub
"Lauren B" wrote:
> I have figured out how to automate the exportation of a file; however, is it
> possibe to get two different reports to open the same Excel document?
>
> My current code for one report is as follows:
> Private Sub Report_1_Click()
> DoCmd.OutputTo acOutputReport, "Report1", acFormatXLS, , -1
> End Sub
>
> How can I add Report 2 to this code?
>
> Thank you very much for any assistance.
>
> LB
>
>
>
.
- References:
- Re:coding to export to Excel
- From: Lauren B
- Re:coding to export to Excel
- Prev by Date: Re: Data Enry Forms
- Next by Date: Re: Getting Date Only
- Previous by thread: Re:coding to export to Excel
- Next by thread: Using "Like" in VB
- Index(es):
Relevant Pages
|