Computing.Net > Forums > Office Software > Print button in Excel

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Print button in Excel

Reply to Message Icon

Name: KerenKeren
Date: July 21, 2009 at 03:15:34 Pacific
OS: Windows XP
Product: Brother 3/4in white on black tape for all tz machines except pt200 & 1200
Subcategory: Microsoft Office
Comment:

I have the following program to add to a button to print a sheet in Excel:
Private Sub CommandButton1_Click()
Sheets("Sheet2").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

End Sub

However, after I print I return to the printed sheet, and I would like to return to the sheet I printed from instead, how do I do that?



Sponsored Link
Ads by Google

Response Number 1
Name: jon_k
Date: July 21, 2009 at 06:26:14 Pacific
Reply:

Private Sub CommandButton1_Click()
sheets("sheet2").printout
End sub


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Print button in Excel

Print button in excel www.computing.net/answers/office/print-button-in-excel/8213.html

button in excel www.computing.net/answers/office/button-in-excel/8021.html

Buttons in Excel www.computing.net/answers/office/buttons-in-excel/3636.html