in reply to MS Word page numbers
The example (vba) there uses
Selection.Information(wdActiveEndPageNumber) [download]