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:
CurPage = Selection.Range.Information(wdActiveEndPageNumber)