Glen Ray assisted with a macro recently that I need help tweeking. The macro adds subtotals and a grand total which can be applied and removed as additional data is entered using two different controls.
It seems that all is well when we have at least 60 rows of data, but if I have 59 or less, then the subtotal and grand total on the last page returns a circular reference error. If I add data to row 60, everything works as expected.
Also, when only 59 rows are entered, the row formatting (borders) are not appearing at the top of the 2nd page - 1st row of data.
I have attached the file.