View Single Post
 
Old 03-30-2020, 01:48 PM
macropod's Avatar
macropod macropod is online now Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by binar View Post
MacroPod,
Thank you for your post. I used the code shown below:

Code:
FP:{StyleRef "Heading 1" \n}-{Page} / (FP: {StyleRef "Heading 1" \n}-{={Page}+1} Blank)
And below is the result I get:

FP: CHAPTER 9-1 / (FP: CHAPTER 9-2 Blank)

It is perfect except for the fact it displays the word "CHAPTER".
Yes, well you didn't tell us you have the 'CHAPTER ' prefix in the Heading Numbering!

If you used the field code I posted, it would have returned:
FP:9-1 / (FP: CHAPTER 9-2 Blank)
to return:
FP:9-1 / (FP: 9-2 Blank)
use:
FP:{Page} / (FP: {QUOTE{SET Chapter {StyleRef "Heading 1" \r}}{=Chapter}}-{={Page \# 0}+1} Blank)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote