Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
oz_saar
 
Posts: n/a
Default printing only active range (changing)


hi all
when im printing a sheet the print area is automaticly set to all cells
containing formulas ,even if the formula resualt is nothing.
how can i set the print area to change automaticly and print only
cells where the formula resualt in NOT nothing ?
(i get the data to the sheet from a database, and the size of the
report is changing every time. next to the data im getting from the
data base i have the additional formulas )

thanks
Oz.


--
oz_saar
------------------------------------------------------------------------
oz_saar's Profile: http://www.excelforum.com/member.php...o&userid=23131
View this thread: http://www.excelforum.com/showthread...hreadid=392156

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

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$1000<""),ROW(Sheet1!$A$1:$A$1000) )

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

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

That last 3 represents the last column to print (A:C in my example).

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



oz_saar wrote:

hi all
when im printing a sheet the print area is automaticly set to all cells
containing formulas ,even if the formula resualt is nothing.
how can i set the print area to change automaticly and print only
cells where the formula resualt in NOT nothing ?
(i get the data to the sheet from a database, and the size of the
report is changing every time. next to the data im getting from the
data base i have the additional formulas )

thanks
Oz.

--
oz_saar
------------------------------------------------------------------------
oz_saar's Profile: http://www.excelforum.com/member.php...o&userid=23131
View this thread: http://www.excelforum.com/showthread...hreadid=392156


--

Dave Peterson
  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Alternatively, you could apply data|filter|autofilter and show only those rows
that have non-blanks. Then print that.

oz_saar wrote:

hi all
when im printing a sheet the print area is automaticly set to all cells
containing formulas ,even if the formula resualt is nothing.
how can i set the print area to change automaticly and print only
cells where the formula resualt in NOT nothing ?
(i get the data to the sheet from a database, and the size of the
report is changing every time. next to the data im getting from the
data base i have the additional formulas )

thanks
Oz.

--
oz_saar
------------------------------------------------------------------------
oz_saar's Profile: http://www.excelforum.com/member.php...o&userid=23131
View this thread: http://www.excelforum.com/showthread...hreadid=392156


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you copy RANK w/o it changing the range? jspan Excel Worksheet Functions 1 June 21st 05 02:56 AM
monitoring a changing range of cells kevin Excel Discussion (Misc queries) 1 June 3rd 05 05:39 PM
monitoring a changing range of cells Kevin Excel Worksheet Functions 1 June 3rd 05 04:54 PM
Changing a range of an array in a SUMPRODUCT formula gives a #N/A error Chrism Excel Discussion (Misc queries) 4 May 4th 05 04:06 PM
changing a range of fields Mr. G. Excel Discussion (Misc queries) 3 January 31st 05 09:21 PM


All times are GMT +1. The time now is 05:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"