View Single Post
 
Old 03-04-2021, 02:25 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

You could use a function to get the page number of any paragraph you supply it with e.g.
Code:
Function PageNum(iPara As Integer) As Integer
    With ActiveDocument
        With .Paragraphs(iPara).Range
            PageNum = .Information(wdActiveEndPageNumber)
        End With
    End With
End Function
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote