HidePageNumbersInWeb Property Example
This example hides page numbers in the first table of contents if the document is to be published to the Web.
ActiveDocument.TableOfContents(1).HidePageNumbersInWeb = True