• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

print sheet1 and print sheet2 with one button

MR.Mewada

New Member
I want to print sheet1 and sheet2 with one button i have code for one sheet please modify for two sheet thanks

Private Sub CommandButton2_Click()
ActiveWindow.SelectedSheets.PrintOut ' print
End Sub
 
Just add one more line, and be specific about which sheets you want
Code:
Sub PrintBoth()
Worksheets("Sheet1").PrintOut
Worksheets("Sheet2").PrintOut
End Sub
 
Back
Top