If the numbering restarts in each section, then use the syntax:
{ IF { PAGE } = { SECTIONPAGES } "Text you want to appear on the last
page" }

Signature
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
> Each section consisting of several pages (for example, 7 pages per section)
> needs to have a WPI number on the last page and not on the previous pages (6
> previous pages in this example). This needs to be done in each section.