![]() |
|
#2
|
||||
|
||||
|
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 |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Return as many Y as the number of occurrence of values in another column | Marcia | Excel | 2 | 11-27-2020 04:19 PM |
| Table of content to include a page number comprising Section and page number | Allen001 | Word | 2 | 11-25-2019 05:38 AM |
| Excel Match return different row number | kimak | Excel | 1 | 03-01-2017 09:39 AM |
How do I create a field that will return the current paragraph number minus one in an automatic list
|
gugootz | Word | 1 | 11-23-2015 04:58 PM |
| Page number with chapter number but not from Heading 1 | alpruett | Word | 5 | 06-04-2014 02:00 PM |