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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

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