Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a simple problem: just before printing (by using the Workbook_BeforePrint event), I hide a column that I don't want to be printed. But because there is no AfterPrint event, I have no idea how to unhide that same column just after the print has been completed. Can anyone give me a solution to the problem ? Thanks Balex |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
?B?QmFsZXg=?= wrote
Hi, I have a simple problem: just before printing (by using the Workbook_BeforePrint event), I hide a column that I don't want to be printed. But because there is no AfterPrint event, I have no idea how to unhide that same column just after the print has been completed. Can anyone give me a solution to the problem ? Thanks Balex Call this from your BeforePrint event with Application.OnTime Now, "WorkbookAfterPrint" Sub WorkbookAfterPrint() Cells.EntireColumn.Hidden = False End Sub -- David |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey, tons of thanks, David, works like a breeze. I could have searched for
ever on my own before discovering that one... Balex "David" wrote: ?B?QmFsZXg=?= wrote Hi, I have a simple problem: just before printing (by using the Workbook_BeforePrint event), I hide a column that I don't want to be printed. But because there is no AfterPrint event, I have no idea how to unhide that same column just after the print has been completed. Can anyone give me a solution to the problem ? Thanks Balex Call this from your BeforePrint event with Application.OnTime Now, "WorkbookAfterPrint" Sub WorkbookAfterPrint() Cells.EntireColumn.Hidden = False End Sub -- David |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unhide Column | Excel Discussion (Misc queries) | |||
Hide / Unhide columns for Printing | Excel Discussion (Misc queries) | |||
Hide/Unhide rows for printing | Excel Discussion (Misc queries) | |||
Unhide column - why doesn't click unhide column work? | Excel Discussion (Misc queries) | |||
How do I unhide a column when format/column/unhide won't work | Excel Worksheet Functions |