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

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

Forum statistics

Threads
1,224,811
Messages
6,181,082
Members
453,021
Latest member
Justyna P

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