#1
|
|||
|
|||
Extract Page Numbers from footers
Hi,
I would like to extract page numbers from the footers of word document as shown in the attachment. Is there a way to do in word vba. Thank you |
#2
|
||||
|
||||
Yes, there is a way to do it. Each section in the document contains up to three footers so there are lots of story ranges to loop through. The page number itself is a field and is likely to be only one of the numbers you showed in the screen shot eg 8 or 14 or 1 or 8-14. Also depending on how your footers are created, the page number could be sitting directly in the footer or inside a floating text frame in the footer. The code would be different for either case so you would need to provide an actual sample doc.
When you say 'extract', do you mean remove the field or are you trying to extract a specific page's number and put it somewhere else?
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
Tags |
fetch pagenumber footer |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why are page numbers both on my headers and footers | stevencunningham | Word | 6 | 01-04-2018 06:43 AM |
Headers, footers and page numbers | Martin Cooper | Word | 2 | 04-19-2016 07:31 PM |
Cannot get page numbers to show in page footers | ravl13 | Word | 3 | 10-31-2014 09:02 AM |
Word page numbers and footers. | drenriza | Word | 5 | 01-27-2011 12:47 AM |
Text and page numbers in footers? | MikeT1953 | Word | 0 | 07-09-2010 08:14 PM |