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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,222,436
Messages
6,166,020
Members
452,008
Latest member
Customlogoflipflops

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