Dave
Mon Sep 05 15:18:42 CDT 2005
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?action=getinfo&userid=26985
> View this thread:
http://www.excelforum.com/showthread.php?threadid=401955
--
Dave Peterson