Hidden Rows causing undesired page breaks

mogulbumm

New Member
Joined
Sep 18, 2014
Messages
1
i have a spreadsheet with a VB Script that hides rows based on a specific value. The sheet is 190 rows, but at any point in time there are only 75-100 rows that need to print.

I've set the print area to be B1:I188 which is the desired area of the spreadsheet.

Problem is that there seems to be a page break entered after row 110 (approx) even if there are only 50 or so rows visible.

I've cleared all page breaks in the doc.

I need either a VB Script help or Macro that will completely ignore hidden rows and perceived page breaks.

I've searched the forum and can't find anything relevant to this problem (though have seen similar problems). I'm a "script kiddie" so I can generally interpret and modify scripts, but am not a programmer myself.

Any help will be paid in beer if you are local :)
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,214,985
Messages
6,122,605
Members
449,089
Latest member
Motoracer88

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