View Single Post
 
Old 06-22-2021, 12:51 PM
ilcaa72 ilcaa72 is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Jan 2014
Posts: 27
ilcaa72 is on a distinguished road
Default Return Footer or Header Page Number

hello, what is the proper VBA syntax to return the footer or header page number (i do not know ahead of time where it will be located. i can take care of the logic, i just need the object.method call to return footer/header page number)

i tried , but this returns the sequential page number not the page number listed in Document at the footer or header (some documents will have a Preface with roman numerals so i need to be able to identify this). thanks

HTML Code:
' only returns sequenced page #, i want the page number in footer or header
CurPage = Selection.Range.Information(wdActiveEndPageNumber)
Reply With Quote