print targeted sheets from main sheet

AnthonyMinnaar

New Member
Joined
Aug 25, 2020
Messages
28
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.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
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: 5
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,953
Members
448,535
Latest member
alrossman

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