LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default Super Easy - adding a button to print

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



On Jul 25, 2:46*pm, KenCanuck
wrote:
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!


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Super easy question Dylan @ UAFC[_2_] Excel Worksheet Functions 5 November 25th 08 05:13 PM
ADDING A PRINT CONTROL BUTTON Tonya Excel Worksheet Functions 1 September 25th 06 09:55 PM
** 60 GIG Photo iPod, Why Pay for it? When u can get it FREE! 100%Legally! ** Super Easy Proof inside! JimmyJohn Excel Programming 0 September 5th 05 08:55 AM
Super/SubScript Button Macro Dave Peterson[_5_] Excel Programming 0 January 12th 05 02:45 AM
Super Easy Question -- " kaon[_16_] Excel Programming 1 July 14th 04 08:28 AM


All times are GMT +1. The time now is 02:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"