I have a 3 row tall signature block that is inserted 4 rows below the bottom of a dynamic table. I want to insert code that will ensure that the signature block never gets printed between 2 pages.
I'm looking for code that will find the location of the last hpagebreak, compare it to the location of the last row on the sheet (the bottom of the signature block), and if the difference between those locations is less than 4 rows, then it would relocate the last hpagebreak up the page by 4 rows.
This way, if the entire signature block doesn't fit at the bottom of the last page of the table, then it will be forced to print intact at the top of the next page instead.
I'm looking for code that will find the location of the last hpagebreak, compare it to the location of the last row on the sheet (the bottom of the signature block), and if the difference between those locations is less than 4 rows, then it would relocate the last hpagebreak up the page by 4 rows.
This way, if the entire signature block doesn't fit at the bottom of the last page of the table, then it will be forced to print intact at the top of the next page instead.