Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, Happy New Year to All
I use the code below that is placed in the ThisWorkbook to stop the printing of certain sheets; 'Stops sheets printing as listed in Case Private Sub Workbook_BeforePrint(Cancel As Boolean) Select Case ActiveSheet.Name Case "Input", "sheet1", "sheet2", "sheet3", "sheet4" Cancel = True MsgBox "Sorry, you cannot print this page", vbInformation End Select End Sub Is it possible to amend this to add an If statement to do the following; Look at cell E162 on sheet 1, if the value is True, sheets 3 and 4 now print, but sheets 1 & 2 stay so they don't print? Hope that makes sense. Regards Newbeetle |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 printing problem--printing 1 document on 2 pages | Excel Discussion (Misc queries) | |||
Excel Printing --Borders are not printing on the same page as data | Excel Discussion (Misc queries) | |||
Printing a heading on each new page when printing | Excel Discussion (Misc queries) | |||
Enable Double sided printing contiuously when printing multiple s. | Excel Discussion (Misc queries) | |||
Printing? Worksheets not printing the same on multiple pc's! | Excel Programming |