+ Reply to Thread
Results 1 to 2 of 2

Hide Column & Print page Macro printing blank page?!

  1. #1
    Forum Contributor
    Join Date
    01-18-2013
    Location
    England
    MS-Off Ver
    2016 (Mac)
    Posts
    149

    Hide Column & Print page Macro printing blank page?!

    Hello Everyone,

    I have the below Macro that is activated from a button on the page that i want to print.
    What I am trying to do is hide column G then print the page and once printed unhide column
    G. The problem that the printed page is blank? I have tried every possible scenario I can
    think of! Print selection, print page 1 etc. but nothing seems to work? Any help is much
    appreciated....

    Below is the code I am using:


    Sub HideAndPrint()
    Columns("G:G").Select
    Selection.EntireColumn.Hidden = True
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
    Columns("E:H").Select
    Selection.EntireColumn.Hidden = False
    Range("C2:K3").Select
    End Sub


    Thank you for any help...

    Margate

  2. #2
    Forum Contributor
    Join Date
    12-31-2012
    Location
    Jhang, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: Hide Column & Print page Macro printing blank page?!

    Nothing is wrong with code... however, you should upload your workbook to rule out any problem.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.6.0 RC 1