Export 3 Access Reports to 1 Excel Doc - Cmd Button

Robby19

Board Regular
Joined
Mar 19, 2018
Messages
227
So currently, I have 3 command buttons with the following code;

Code:
Private Sub Command368_Click()
DoCmd.OutputTo acOutputReport, "Visit Report By PMCC", acFormatXLS, "c:\Exports\Visit Report by PMCC.xls", True
End Sub

Is it possible to export 3 reports into 1 excel doc and have each report in a different tab?
 
Last edited:

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I am a rock when it comes to VBA, but if I understand that first paragraph clearly it says that the TransferSpreadsheet code is not used for Exporting only Importing. I don't believe this would be the answer, unless you know something I don't which is most likely the case.
 
Upvote 0
If you read on beyond the first paragraph, the blogger gives you code to do what you want. He is giving you background on what MS says and what is reality. Don't give up complaining, try the code that is given.
 
Upvote 0

Forum statistics

Threads
1,215,363
Messages
6,124,505
Members
449,166
Latest member
hokjock

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top