Is it possible to define areas where page breaks are forbidden?

Is it possible to define row-ranges, that don’t allow page breaking?

Manually set page breaks would often need adjustment when the content of a dynamic document keeps changing. I would like to define either “soft breaks” or something like “non breaking row-ranges” that aren’t allowed to be split between pages.

I am trying to create a template for a printable table to be filled out by students and I’d prefer not to have page breaks inside the topic groups. So I’m wondering if there’s a way to achieve that, without relying on the editors to adjust the page breaks.

I’ve already tried to add a column with merged cells, connecting the rows I want to keep together, but that didn’t help.

I think you will need a macro for this purpose.
This macro will check if there are any page breaks within the row ranges you have marked, and if there are any, it will move such breaks up (by setting manual breaks).

Thank you very much for your reply, sokol92.

I assume, that the editors would get a warning then, when they open the document. I fear that it might lead to misunderstandings, when some of them aren’t able to understand program code.