Don't print blank pages, where page breaks are contained between hidden rows

tlc53

Active Member
Joined
Jul 26, 2018
Messages
399
Hi there,

I've been trying to find a solution to my problem, but I haven't found one yet. I have a report that has 2 manual page breaks inserted and contains hidden rows. The rows are hidden based on user selections. Hiding the rows determines which of the 3 reports on this sheet are visible and available for printing. Each report requires their own page, hence the reason for the page breaks. The page breaks are located above cells 74 and 144. Since I have manual page breaks between my hidden rows, if I only want to print the first report which is 1-page long, it follows with 2 more blank pages.

I need the manual page breaks and the rows are automatically hidden with a VBA code.

Is there a way around stopping the printing of the blank pages, without manually selecting which pages to print? Thank you!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,215,071
Messages
6,122,964
Members
449,094
Latest member
Anshu121

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