Super Easy - adding a button to print

  • Thread starter Thread starter KenCanuck
  • Start date Start date
K

KenCanuck

I can't figure this out. I just want to add a 'button' next to some text,
that when clicked, will print a specific worksheet. Thanks!
 
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

:)
susan
 

Ask a Question

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.

Ask a Question

Back
Top