Page related procedures in class TableOfFigures (Word VBA)

This page presents procedures from class TableOfFigures related to the theme Page: IncludePageNumbers, RightAlignPageNumbers and UpdatePageNumbers

IncludePageNumbers

True if page numbers are included in the table of figures.

If ActiveDocument.TablesOfFigures.Count >= 1 Then 
 With ActiveDocument.TablesOfFigures(1) 
 .IncludePageNumbers = True 
 .RightAlignPageNumbers = True 
 End With 
End If

RightAlignPageNumbers

True if page numbers are aligned with the right margin in an table of figures.

If ActiveDocument.TablesOfFigures.Count >= 1 Then 
 With ActiveDocument.TablesOfFigures(1) 
 .IncludePageNumbers = True 
 .RightAlignPageNumbers = True 
 End With 
End If

UpdatePageNumbers

Updates the page numbers for items in a table of figures.

Dim tofLoop As TableOfFigures 

For Each tofLoop In Documents("Sales.doc").TablesOfFigures 
 tofLoop.UpdatePageNumbers 
Next tofLoop