# Posts by lamkaloniaz

• ## HPageBreak

I have a macro that insert an empty row or a table header when met a certain condition at the end of each HPagebreak.
My problem is the macro only works until the calculated page break at the initial of the code. (i.e: macro calculate total HPageBreak = 72)
The macro doesn't include if additional page created later (I.e: pg. 73 onwards) due to the addition of rows from the condition met by the code.
How do I change the code to include the added extra page?

Below is the code. This code is base on the compilation of codes I search in the internet.