+ Reply to Thread
Results 1 to 2 of 2

QUESTION - Printing based on number of columns

  1. #1
    Registered User
    Join Date
    06-30-2008
    Location
    Georgia
    MS-Off Ver
    2013
    Posts
    72

    Question QUESTION - Printing based on number of columns

    I tried doing some searching on this and i know you can control a lot of printing using vba, but what i can't seem to find is how to set the print area based on the number of visible columns.

    So in my workbook the maximum number of columns that are visible is 63 (columns A:BK), all others are hidden. I am trying to have the workbook automatically set the print area to the following:
    If visible columns are less or equal to than 33, format to:
    • Landscape
    • 1 page wide
    • ([blank] pages tall)
    • repeat columns A:B
    • repeat rows 1-10
    If visible columns are greater than 33, format to:
    • Landscape
    • 2 pages wide
    • ([blank] pages tall)
    • repeat columns A:B
    • repeat rows 1-10
    Is this possible?
    Last edited by maddog9486; 07-18-2013 at 03:20 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: QUESTION - Printing based on number of columns

    Hi maddog

    Play with this
    Please Login or Register  to view this content.
    John

    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 07-16-2012, 03:24 AM
  2. Printing a number of pages based on a cell value
    By Speshul in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-21-2012, 11:34 AM
  3. Percentage based on number of X's in columns
    By Eddielarue in forum Excel General
    Replies: 3
    Last Post: 12-15-2010, 07:36 PM
  4. Sum columns based on fixed number
    By ifejza in forum Excel General
    Replies: 4
    Last Post: 01-23-2010, 11:22 AM
  5. Multiple Sheet Printing Based on Number Input
    By patele in forum Excel General
    Replies: 1
    Last Post: 09-03-2006, 03:40 AM

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