Forum Discussion
Section Page Count and Section Pages field Bugs
Hi Doug,
I am not seeing this in MS 365 Classic Word.
Page 2 accurately reflects page 2 for the page count.
My document has an empty paragraph before the endnote on page 2.
The macro returned 1, 1, 2, 2.
My installation of Word requires a Print Preview to update page and numpage fields in the header or footer.
OOPS
I did not follow your instructions.
Without the empty paragraph before the endnote on page 2, SectionPages shows 1.
With the empty paragraph, it shows 2 section pages.
Hi Charles,
Yes, that is the issue - without the empty paragraph at the top of the page before the Endnote.
As Greg was using 2019, it's probably been an issue since Day Dot
However, it does not matter how many pages there are in the Section. If the Endnotes are orphaned at the top of the last page of the Section, the SectionPages field is out by 1
While the 2-page Section issue may be a bit contrived, it is not unrealistic to have a multipage Section where the Endnotes are orphaned - perhaps so that they all appear on the one page.