oh! i do this all the time...... either to print one specific
worksheet or to print all the worksheets in a workbook.
you add a command button to the worksheet. check the properties &
change "print object" to false.
then add coding such as one of these:
Private Sub CommandButton1_Click()
Worksheets(1).PrintOut
'or Worksheets("Sheet1").PrintOut
End Sub
Private Sub CommandButton1_Click()
'will print them all........
Worksheets.PrintOut
'effectively de-selects the group of worksheets
'by just selecting one of them
Worksheets(1).Select
End Sub
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.