Sections Page Count (Word 2000)

Is there any method of obtaining the total page count in a section through code? I know I can do it by inserting a field in the header or footer for SECTIONPAGES, but can't find a method by code directly.

Re: Sections Page Count (Word 2000)

Hi Pieter.

Thanks so much. It worked but I did have to remove the increase of 1 to the subtraction of the starting and ending page number of the page range. I'm not sure why because it does make sense that it should be increased by one. I could not get an accurate page count with the +1.