+ Reply to Thread
Results 1 to 4 of 4

Dynamically change print area

  1. #1
    Registered User
    Join Date
    09-05-2005
    Location
    Franklin, PA
    Posts
    1

    Dynamically change print area

    How can I dynamically change the print area without using a VB macro.
    The rows of data in the spreedsheet A1:E1200 varies each month.
    I.E. month 1 there is data in A1:E800, month 2 there is data in A1:E1100, Etc.
    There are blank rows & columns in the area that I want to print.
    Any help would be appreciated.

  2. #2
    Don Guillett
    Guest

    Re: Dynamically change print area

    try
    insert>name>define>name it
    Print_Area
    in the refers to box type
    =offset($a$1,0,0,counta($a:$a),5)
    touch OK>test it

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "John R" <[email protected]> wrote in
    message news:[email protected]...
    >
    > How can I dynamically change the print area without using a VB macro.
    > The rows of data in the spreedsheet A1:E1200 varies each month.
    > I.E. month 1 there is data in A1:E800, month 2 there is data in
    > A1:E1100, Etc.
    > There are blank rows & columns in the area that I want to print.
    > Any help would be appreciated.
    >
    >
    > --
    > John R
    > ------------------------------------------------------------------------
    > John R's Profile:

    http://www.excelforum.com/member.php...o&userid=26985
    > View this thread: http://www.excelforum.com/showthread...hreadid=401955
    >




  3. #3
    Dave Peterson
    Guest

    Re: Dynamically change print area

    I think this will fail with those blank rows in the range to print.



    Don Guillett wrote:
    >
    > try
    > insert>name>define>name it
    > Print_Area
    > in the refers to box type
    > =offset($a$1,0,0,counta($a:$a),5)
    > touch OK>test it
    >
    > --
    > Don Guillett
    > SalesAid Software
    > [email protected]
    > "John R" <[email protected]> wrote in
    > message news:[email protected]...
    > >
    > > How can I dynamically change the print area without using a VB macro.
    > > The rows of data in the spreedsheet A1:E1200 varies each month.
    > > I.E. month 1 there is data in A1:E800, month 2 there is data in
    > > A1:E1100, Etc.
    > > There are blank rows & columns in the area that I want to print.
    > > Any help would be appreciated.
    > >
    > >
    > > --
    > > John R
    > > ------------------------------------------------------------------------
    > > John R's Profile:

    > http://www.excelforum.com/member.php...o&userid=26985
    > > View this thread: http://www.excelforum.com/showthread...hreadid=401955
    > >


    --

    Dave Peterson

  4. #4
    Dave Peterson
    Guest

    Re: Dynamically change print area

    Maybe...

    Can you pick out a column that always has data if that row is used?

    If you can, then maybe this old post will help you (I used column A):

    Insert|Name|Define
    Names in workbook: Sheet1!LastRow
    Use this formula
    Refers to: =LOOKUP(2,1/(Sheet1!$A$1:$A$2000<>""),ROW(Sheet1!$A$1:$A$2000))

    (Make that 2000 big enough to extend past the last possible row.)

    Then once more:
    Insert|Name|Define
    Names in workbook: Sheet1!Print_Area
    Use this formula
    Refers to: =OFFSET(Sheet1!$A$1,0,0,lastRow,5)

    That last 5 represents the last column to print (A:E).

    And change the worksheet (sheet1) if necessary (in all the places).

    John R wrote:
    >
    > How can I dynamically change the print area without using a VB macro.
    > The rows of data in the spreedsheet A1:E1200 varies each month.
    > I.E. month 1 there is data in A1:E800, month 2 there is data in
    > A1:E1100, Etc.
    > There are blank rows & columns in the area that I want to print.
    > Any help would be appreciated.
    >
    > --
    > John R
    > ------------------------------------------------------------------------
    > John R's Profile: http://www.excelforum.com/member.php...o&userid=26985
    > View this thread: http://www.excelforum.com/showthread...hreadid=401955


    --

    Dave Peterson

+ 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