I am trying to set the print area to print only the area of the worksheet that contains text. Some cells contain formulas, so if you print the worksheet, 3 pages will be printed while only one may actually contain information.
I created a named range 'MyPrintArea' (with the scope set to the sheet level) and entered the following formula:
=OFFSET(Sheet1!$A$1,0,0,22+COUNTIF(Sheet1!$A$23:$A$112,">0"),12)
This part works fine, and will return the correct range everytime as well as update as the sheet changes. The problem arises when i go to set the 'Print_Area' to equal my dynamic range 'MyPrintArea'. Instead of the named range, excel automatically updates the "refers to" area to the static range that 'MyPrintArea' is equal to at that time. Ex:
=MyPrintArea
changes to
=Sheet1!$A$1:$L$24
I have tried entering the offest formula directly into 'Print_Area' and get the same result. I have seen examples where this works fine for other users, and 'Print_Area' remains equal to the named range and updates along with it.
Any thoughts? <!-- / message --><!-- BEGIN TEMPLATE: ad_showthread_firstpost_sig --><!-- END TEMPLATE: ad_showthread_firstpost_sig -->
I created a named range 'MyPrintArea' (with the scope set to the sheet level) and entered the following formula:
=OFFSET(Sheet1!$A$1,0,0,22+COUNTIF(Sheet1!$A$23:$A$112,">0"),12)
This part works fine, and will return the correct range everytime as well as update as the sheet changes. The problem arises when i go to set the 'Print_Area' to equal my dynamic range 'MyPrintArea'. Instead of the named range, excel automatically updates the "refers to" area to the static range that 'MyPrintArea' is equal to at that time. Ex:
=MyPrintArea
changes to
=Sheet1!$A$1:$L$24
I have tried entering the offest formula directly into 'Print_Area' and get the same result. I have seen examples where this works fine for other users, and 'Print_Area' remains equal to the named range and updates along with it.
Any thoughts? <!-- / message --><!-- BEGIN TEMPLATE: ad_showthread_firstpost_sig --><!-- END TEMPLATE: ad_showthread_firstpost_sig -->