View Single Post
 
Old 10-18-2016, 12:28 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote