Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have an workbook with 31 sheets (one for each day of the
month) I would like to create a print macro with a corresponding button. Is there a way to use only one button and depending on the sheet that I am currently on, only print the range on that specific sheet? Thanks in advance. T.R. |
#2
![]() |
|||
|
|||
![]()
Hi
Here are some one liners that you can use http://www.rondebruin.nl/print.htm#Print -- Regards Ron de Bruin http://www.rondebruin.nl "T. R." wrote in message ... I have an workbook with 31 sheets (one for each day of the month) I would like to create a print macro with a corresponding button. Is there a way to use only one button and depending on the sheet that I am currently on, only print the range on that specific sheet? Thanks in advance. T.R. |
#3
![]() |
|||
|
|||
![]()
T.R.
In your macro, don't refer to any sheet name. Simply provide the range to print and issue a print command. The code will print that range on the active sheet. HTH Otto "T. R." wrote in message ... I have an workbook with 31 sheets (one for each day of the month) I would like to create a print macro with a corresponding button. Is there a way to use only one button and depending on the sheet that I am currently on, only print the range on that specific sheet? Thanks in advance. T.R. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to assign a macro to a commnd button | Excel Discussion (Misc queries) | |||
Destroy command button with a Macro? | Excel Discussion (Misc queries) | |||
Assign Macro to button in Excel doesnt work Any ideas? | Excel Discussion (Misc queries) | |||
assign a macro to a control button | Excel Discussion (Misc queries) | |||
Macro button colour change??? | Excel Worksheet Functions |