ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Printing a WorkSheet with an embedded command button (https://www.excelbanter.com/excel-programming/272783-printing-worksheet-embedded-command-button.html)

Rich[_12_]

Printing a WorkSheet with an embedded command button
 

I am trying to print on the second page of a workbook and
trying to do it using a command button on the first page
of the worksheet. What code do I use.
Thanks!
Rich

John Wilson

Printing a WorkSheet with an embedded command button
 
Rich,

Not enough information to go on here.
By second page, do you mean a different tab (worksheet)
or what would be the second page of the same worksheet?
One thing to try is to start on the first page (wherever that is)
and start the macro recorder. Then go through all the steps you
would manually do to print the second page. When done, stop
the recorder. Try running the macro that you created to see if
it works and if so, drag a button from the "Forms" toolbar onto
page 1 and "assign" that macro to it.

John

Rich wrote:

I am trying to print on the second page of a workbook and
trying to do it using a command button on the first page
of the worksheet. What code do I use.
Thanks!
Rich




All times are GMT +1. The time now is 01:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com