+ Reply to Thread
Results 1 to 3 of 3

Setting variable, discontinuous print area in a macro

  1. #1
    Registered User
    Join Date
    05-29-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 97
    Posts
    3

    Setting variable, discontinuous print area in a macro

    I need to write a macro to set the print area to the first two columns (A & B), and the last 12 columns (the last column may change). In both cases I need to print all rows (start is row 1, last row is variable). I am trying to achieve something like the "Freeze Pane" effect with the printer. The first two rows contain column headers (dates). The first two columns contain information that needs to be included on the printout, whilst the last 12 columns contain the most recent data.

    Various cells withing the selected ranges may be blank, but no row or column will be entirely blank.

    Is this possible, or am I trying to achieve the impossible?
    Last edited by dkril; 05-29-2009 at 03:45 PM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,982

    Re: Setting variable, discontinuous print area in a macro

    You can't just set a discontiguous print area. The easiest thing would be to simply hide the columns you don't want printed?

  3. #3
    Registered User
    Join Date
    05-29-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 97
    Posts
    3

    Re: Setting variable, discontinuous print area in a macro

    There's more than one way to skin a cat !

    Thanks mate .

+ 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