How to unhide a column after printing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
=?Utf-8?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
 
Hey, tons of thanks, David, works like a breeze. I could have searched for
ever on my own before discovering that one...

Balex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Event After Printing 2
Unhiding columns 4
Macro to Hide/Unhide various columns 5
Hiding/Unhiding protected columns 1
Hide unhide non-contiguous columns 6
Time to Unhide an Entire Column 3
Printing 1
Excel printing 2

Back
Top