PDA

View Full Version : Return Footer or Header Page Number



ilcaa72
06-22-2021, 03:26 AM
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



CurPage = Selection.Range.Information(wdActiveEndPageNumber)

rollis13
06-22-2021, 01:56 PM
Just to add missing crosspost link: LINK (https://www.msofficeforums.com/word-vba/47210-return-footer-header-page-number.html)