UpdatePageNumbers Method Example
This example updates all tables of figures in Sales.doc.
For Each figs In Documents("Sales.doc").TablesOfFigures
figs.UpdatePageNumbers
Next figs
This example inserts a page break at the insertion point and then updates the page numbers for the first table of contents in the active document.
Selection.Collapse Direction:=wdCollapseStart
Selection.InsertBreak Type:=wdPageBreak
ActiveDocument.TablesOfContents(1).UpdatePageNumbers