The SET field creates a bookmark. In the examples I posted, that bookmark's name is LastPage and its value is whatever is returned by the NUMPAGES field. The reason for using a NUMPAGES field instead of a PAGE field is that the NUMPAGES field gets the count of all pages in the document whereas the PAGE field only returns the number of the page it is on.
A Table of Contents cannot display a calculated page value; if you want the actual page numbers that you're assigning to the source documents, you'll have to use Word's own page numbering tools to set the 'starting from' value in each of those documents. The link you posted appears to have a macro for doing that.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|