+ Reply to Thread
Results 1 to 3 of 3

Thread: How to unhide a column after printing

  1. #1
    Balex
    Guest

    How to unhide a column after printing

    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. #2
    David
    Guest

    Re: How to unhide a column after printing

    =?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

    --
    David

  3. #3
    Balex
    Guest

    Re: How to unhide a column after printing

    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:

    > =?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
    >
    > --
    > David
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0