+ Reply to Thread
Results 1 to 6 of 6

VBA to AutoSet Print Area.

  1. #1
    Registered User
    Join Date
    03-21-2012
    Location
    San Diego
    MS-Off Ver
    Excel 2010
    Posts
    6

    VBA to AutoSet Print Area.

    Hi All,

    I need help on a VBA Code, since i'm not really that good with VBA.

    What I created is an excel workbook driven by to input cells, where the rest of the report would auto populate and auto expand.

    By doing so, my auto set printable would not set right.

    I would like the report to include all rows between 4 thru 46,

    and the columns to include "Aggregate Totals" which will be the last column.

    Can Anyone help me?

  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: VBA to AutoSet Print Area.

    Hi Phamaily

    Probably something like 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.

  3. #3
    Registered User
    Join Date
    03-21-2012
    Location
    San Diego
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: VBA to AutoSet Print Area.

    Thank You John,

    May I ask,

    is there a code to mark this "ON Change" on C1?

  4. #4
    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: VBA to AutoSet Print Area.

    Hi Phamaily

    I don't understand the question...please explain
    is there a code to mark this "ON Change" on C1?

  5. #5
    Registered User
    Join Date
    03-21-2012
    Location
    San Diego
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: VBA to AutoSet Print Area.

    John,

    I mean, is there a code, that I can add to this macro setting..

    where if there is any change on cell "C1", then run this macro.

  6. #6
    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: VBA to AutoSet Print Area.

    Hi Phamaily

    I can't see your File so I have no clue what a change in Cell C1 has on setting the print area. Post your file so I can see...explain what it is you wish to do...

+ 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: 1
    Last Post: 02-12-2013, 12:16 PM
  2. VBA to set print range, open box asking for print qty, print, then redefine print area
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2012, 06:43 PM
  3. Replies: 8
    Last Post: 05-23-2007, 06:39 AM
  4. Replies: 4
    Last Post: 10-08-2005, 03:05 PM
  5. Print Area:What would be the code for setting the print area
    By wammer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2005, 02:05 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