Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a Workbook that uses the Workbook_BeforePrint sub in ThisWorkbook to
hide some columns. Is there a way to unhide those columns after printing? Doesn't seem to be a AfterPrint procedure. Thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use this Tom
Private Sub Workbook_BeforePrint(Cancel As Boolean) On Error GoTo ErrorHandler Cancel = True Application.EnableEvents = False With Sheet1 'or whichever sheet is to be printed .Rows("8:12").EntireRow.Hidden = True .PrintOut .Rows("8:12").EntireRow.Hidden = False End With ErrorHandler: Application.EnableEvents = True End Sub -- Regards Ron de Bruin (Win XP Pro SP-1 XL2002 SP-2) www.rondebruin.nl "Tom Atkisson" wrote in message ... I have a Workbook that uses the Workbook_BeforePrint sub in ThisWorkbook to hide some columns. Is there a way to unhide those columns after printing? Doesn't seem to be a AfterPrint procedure. Thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 printing problem--printing 1 document on 2 pages | Excel Discussion (Misc queries) | |||
event vba | Excel Worksheet Functions | |||
event | Excel Discussion (Misc queries) | |||
Excel Printing --Borders are not printing on the same page as data | Excel Discussion (Misc queries) | |||
Enable Double sided printing contiuously when printing multiple s. | Excel Discussion (Misc queries) |