I am trying to set a dynamic print range with the following formula, but I was hoping that I could apply the same named range to several tabs:
=OFFSET($A$3,0,0,(COUNTA($A$10:$A$260)+14)-COUNTIF($A$10:$A$260,""),5)
What I want to know is whether it is possible to set up a dynamic print area that uses this formula in to 30 tabs of the same layout, named 1-30 (but each with different contents).
The way I was trying to do it was (in office 365), formula --> define names --> then create a new range called 'dynam_print'. I use the offset formula above as the range. Then I refer the print area of that tab back to the named range.
The trouble is that the formula in the named range then gets changed to refer specifically to the tab in question. This then stops me using it as a named range in other tabs. For example, when I apply it to tab 1, the named range above automatically changes to the following formula:
=OFFSET('1'!$A$3,0,0,(COUNTA('1'!$A$10:$A$260)+14)-COUNTIF('1'!$A$10:$A$260,""),5).
I am not sure if I am doing something wrong with this method. I have had it working in the past but I have forgotten exactly how I set it up. Perhaps I would need to just set up 30 different named ranges, one for each tab?
As an alternative method, when I paste the above formula into the 'print range' box in the 'page setup' menu (individually in each tab), the print area does set to the right area, but only at the time of application. It does not move dynamically as new data is added, and when you check the print area in each tab, it has reverted to the actual cell references of the area identified by the named range when it was originally input.
Bookmarks