Dynamic Print Split Range

melodramatic

Board Regular
Joined
Apr 28, 2003
Messages
187
Office Version
  1. 365
Platform
  1. Windows
I am trying to set a dynamic print range, but one that takes a portion of the top of the sheet, and then adds on a portion of the bottom of the sheet. The portions depend on how many items are in a group.

If I manually set the print range, here's what I see when I go to the Print_Area in Formulas/Name Manager: '='L1'!$B$1:$X$126,'L1'!$B$243:$X$590

What I've got on the sheet, in calculated cells, gives the ranges I want:

Sheet L1, Cell AD1 (for the top portion of print): $B$1:$X$126
Sheet L1, Cell AD2 (for bottom portion of print): $B$241:$X$590

Now, for one range only (the standard that I've always used), what I've done in the past is go to my Print_Area, and change the Refers to: with an indirect command: =INDIRECT('L1'!$AD$1)

But, how do I do that with two sections to become what I need?

Thank you in advance for your help!
 

Attachments

  • Annotation 2024-05-22 161155.png
    Annotation 2024-05-22 161155.png
    9.8 KB · Views: 5

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
One note - I also tried to create a concatenation of the entire line shown in Print_Area (when manually choosing the area)

='L1'!$B$1:$X$126,'L1'!$B$243:$X$590 is what shows when I manually choose the area
'L1'!$B$1:$X$126,'L1'!$B$243:$X$590 is what I now have calculated in cell AF1

I then went to Print_Area, changing the Refers to: =Indirect("'L1'!$AF$1")

And it doesn't work for me. I get the entire print out of all lines.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top