Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Harlan Grove Wrote: dill_weed wrote... I have copied the formulae down several hundred rows, because it is a template that will receive different sized files. So there are several hundred rows with formulae in them, but they show up blank, and I would like to avoid printing the blank cells. If all these blank rows will be clustered below the nonblank rows, you could define the print area for the worksheet using a formula. For example, if the worksheet were named WS, then run the menu command Insert Name Define, enter WS!Print_Area in the topmost field in the Define Name dialog and enter the formula =OFFSET(WS!$A$1:$J$1,0,0, LOOKUP(2,1/(WS!$A$2:$A$65536<""),ROW(WS!$A$2:$A$65536))) in the 'Refers to' entry field, then click OK. Replace the worksheet name, WS, as needed. Also note that the print range could start in any cell, so replace the first argument to OFFSET, WS!$A$1:$J$10 in the formula above, with the range address of the topmost row of your intended print range, and adjust the LOOKUP call as needed to correspond to changes in the location of the print range (note that both ranges in the LOOKUP call begin in the cell immediately below the top-left cell of the print range). I must say this is truly wonderful. I've been looking for a way to dynamically set the print area that is ideal for a long time without messing with hiding rows and cells and such. This has been working perfectly on all of my templates so far! Thanks! -- Vassago ------------------------------------------------------------------------ Vassago's Profile: http://www.excelforum.com/member.php...o&userid=36906 View this thread: http://www.excelforum.com/showthread...hreadid=484040 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert rows based on specific value | Excel Worksheet Functions | |||
How to prevent extra blank pages from printing? | Excel Discussion (Misc queries) | |||
Deleting unwanted and empty rows... | Excel Discussion (Misc queries) | |||
Deleteing empty rows | Excel Discussion (Misc queries) | |||
Printing only certain rows | Excel Discussion (Misc queries) |