Hello - I have a document in Excel that constantly changes rows and I need to set a page break with specific criteria, due to the change in rows. Here is what I am trying to do.

The sheet I use has row headers from Row 1 to Row 12 that are to set to print on every page. I want to print only 38 rows worth of data per each sheet, along with the row headers. So basically, that would be 50 rows of data per each sheet if you count the row headers.

The variable is that if there aren't at least 38 rows of data, then I would only need to print 1 page, since the row headers and data wouldn't be more than 50 rows in total.