![]() |
#4
|
||||
|
||||
![]()
I'm not sure there is a simple method. You could use the constant that returns the arabic number for that section
Selection.Range.Information(wdActiveEndAdjustedPageNumber) Do you want the formatted page number (what a field would return if it had no switches added) or an Arabic number? It could be alphabetic or roman numerals for instance. I think it takes a lot of code to work out the applicable header/footer contents and would probably be easier to insert a Page Field on the page and get that value. A H/F might be linked to preceding H/F and pagenum fields can be in floating text boxes - it gets very ugly to query that info.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
Tags |
footer and header, word vba code |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
SamDsouza | Word VBA | 4 | 03-04-2021 09:37 PM |
Different header and footer for first and second page | Maupiti | Word | 2 | 02-08-2021 05:44 PM |
Don't want page number or date in footer on first page, do want graphic in header. | dianahbr | Word | 2 | 02-23-2018 09:25 AM |
![]() |
onemorecupofcoffee | Word | 18 | 09-04-2013 04:31 PM |
How to save the current page in a new file with all the page settings (header, footer | Jamal NUMAN | Word | 6 | 03-15-2012 03:27 PM |