Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-19-2020, 07:57 PM
sai sai is offline Extract Page Numbers from footers Windows 10 Extract Page Numbers from footers Office 2010
Novice
Extract Page Numbers from footers
 
Join Date: May 2020
Posts: 8
sai is on a distinguished road
Default 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
Attached Images
File Type: png FooterpageNumbers.PNG (8.6 KB, 12 views)
Reply With Quote
  #2  
Old 05-19-2020, 09:23 PM
Guessed's Avatar
Guessed Guessed is offline Extract Page Numbers from footers Windows 10 Extract Page Numbers from footers Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
Reply

Tags
fetch pagenumber footer

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract Page Numbers from footers Why are page numbers both on my headers and footers stevencunningham Word 6 01-04-2018 06:43 AM
Extract Page Numbers from footers Headers, footers and page numbers Martin Cooper Word 2 04-19-2016 07:31 PM
Extract Page Numbers from footers Cannot get page numbers to show in page footers ravl13 Word 3 10-31-2014 09:02 AM
Extract Page Numbers from footers 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

Other Forums: Access Forums

All times are GMT -7. The time now is 04:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft