print targeted sheets from main sheet

AnthonyMinnaar

New Member
Joined
Aug 25, 2020
Messages
17
Office Version
  1. 2013
Platform
  1. Windows
Hello folks,

I tried to make a button on a main sheet to print another sheet, but I cant get it working. as an alternative I made a button on the sheet that needs to be printed, and that seems to work (this is what I used to do that:
ActiveWindow.SelectedSheets.PrintOut ActivePrinter:="", copies:=1, collate:=True)

Is there a way to print another sheet with button on the main sheet? what should I replace "ActiveWindow.SelectedSheets" with to target a certain sheet?


thanks in advance,

Anthony.
 

Some videos you may like

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

AnthonyMinnaar

New Member
Joined
Aug 25, 2020
Messages
17
Office Version
  1. 2013
Platform
  1. Windows
a photo to make it a bit more understandable. the red arrow shows the button that needs to print the sheet it points to.
 

Attachments

  • Knipsel.PNG
    Knipsel.PNG
    9.6 KB · Views: 3

Watch MrExcel Video

Forum statistics

Threads
1,127,035
Messages
5,622,332
Members
415,894
Latest member
silverhaze

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
Top