+ Reply to Thread
Results 1 to 5 of 5

Do not want a Column to be printed out

Hybrid View

erimon Do not want a Column to be... 02-24-2013, 12:44 PM
john55 Re: Do not want a Column to... 02-24-2013, 02:02 PM
erimon Re: Do not want a Column to... 02-24-2013, 03:14 PM
newdoverman Re: Do not want a Column to... 02-25-2013, 05:29 PM
erimon Re: Do not want a Column to... 02-25-2013, 06:42 PM
  1. #1
    Registered User
    Join Date
    02-24-2013
    Location
    Phoenix
    MS-Off Ver
    Excel 2010
    Posts
    3

    Do not want a Column to be printed out

    Hello all, this is my first post here in this forum. I will start off by describing my spreadsheet then post my question.

    My spreadsheet is a dual purpose spreadsheet, it is my printable catalog of product offerings as well as my worksheet for my cost and my cost markup. I have apx 2500 rows of product offerings.

    My question…I would like to be able to print my catalog without my cost markup columns being printed. It is not practical for me to hide the column, then print, then unhide the column again every time I want to print out my catalog. I would like the columns to always be visible, but just not print.

    TIA
    Erimon

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Do not want a Column to be printed out

    one way
    Private Sub Workbook_BeforePrint(Cancel As Boolean)
    'http://www.rondebruin.nl/print.htm
    With ActiveSheet
                .Range("B1,D1").EntireColumn.Hidden = True
                .PrintOut
                .Range("B1,D1").EntireColumn.Hidden = False
            End With
    
    End Sub
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  3. #3
    Registered User
    Join Date
    02-24-2013
    Location
    Phoenix
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Do not want a Column to be printed out

    This looks beyond me. Is that VB code for the backend? I'm willing to give it a go though.

    Quote Originally Posted by john55 View Post
    one way
    Private Sub Workbook_BeforePrint(Cancel As Boolean)
    'http://www.rondebruin.nl/print.htm
    With ActiveSheet
                .Range("B1,D1").EntireColumn.Hidden = True
                .PrintOut
                .Range("B1,D1").EntireColumn.Hidden = False
            End With
    
    End Sub

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Do not want a Column to be printed out

    Have you tried to select what you want to print then on the Page Layout tab click on Print Area, Set Print Area? This should only print what has been selected and the selection should stay until you change it.

  5. #5
    Registered User
    Join Date
    02-24-2013
    Location
    Phoenix
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Do not want a Column to be printed out

    Quote Originally Posted by newdoverman View Post
    Have you tried to select what you want to print then on the Page Layout tab click on Print Area, Set Print Area? This should only print what has been selected and the selection should stay until you change it.
    Well heck fire, that worked. Something so simple and right before my eyes the whole time too... thanks newdoverman!
    The older I get, the smarter I was.

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