Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 08-05-2019, 09:14 PM
Swarup Swarup is offline How to add a running tally of "page # per # of pages in chapter" in lower right corner of footer Windows 10 How to add a running tally of "page # per # of pages in chapter" in lower right corner of footer Office 2016
Competent Performer
How to add a running tally of "page # per # of pages in chapter" in lower right corner of footer
 
Join Date: Jul 2018
Posts: 188
Swarup is on a distinguished road
Default

Using the example given in Greg Maxey's site, I was able to set up the "X of Z" for the first chapter using the simple approach "{ page } of { SectionPages }". It worked beautifully! And Greg explained that this simple approach cannot be used for the subsequent chapters, as in the "X of Z" for chapters after the first, we will again want X to be starting from 1. (Whereas in the regular page number field we need it to be of an ongoing nature from one section to the next.)

To solve this, Greg guides to create a bookmark at the end of every chapter (i.e. end of every section), and then to use this following model to get the X of Z to restart at the beginning of every section with an X of 1--

{={ Page }-{ PageRef mybookmark } }

So in chapter two, I tried taking the page field, highlighting and toggling it, then changing its contents to the above (where I substituted 'mybookmark' with D37 which is the bookmark I had created). When I again toggled the field code to get the result, it gave the message "syntax error". Any suggestion what is the syntax error I made?

The field code is currently:

{PAGE \* Arabic \* MERGEFORMAT }

In place of that I put:

{={ Page }-{ PageRef D37} }

When I again toggled the field code to get the result, it gives me "syntax error".

I also tried the below, as the when I toggle the field code, for the page number this is what actually appears: { PAGE \* Arabic \* MERGEFORMAT}. So I kept all of that, and tried simply adding the rest of the code given in Greg's site to minus the PageRef of the page before the given section begins.

{={ PAGE \* Arabic \* MERGEFORMAT}-{ PageRef D37} }

But when I again toggled the field code to get the result, it again gives me "syntax error".

I also tried capitalizing the word "page", as MS word had it capitalized:

{={ PAGE }-{ PageRef D37} }

But it still gives me "syntax error".

Last edited by Swarup; 08-06-2019 at 06:38 AM. Reason: Added the code for further attempts to get it right
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a running tally of "page # per # of pages in chapter" in lower right corner of footer How do I lower the position of the page number in the footer? lgambis Word 9 02-24-2018 10:38 AM
How to add a running tally of "page # per # of pages in chapter" in lower right corner of footer Bookmark not replaced when inserting but to lower right corner of image newbieX Word VBA 6 11-20-2015 02:03 PM
designating seperate settings (even & odd pages, first page omitted) for header and footer? xhgrrr Word 3 04-02-2015 05:58 PM
How to add a running tally of "page # per # of pages in chapter" in lower right corner of footer Advanced page numbering: section pages in header, document pages in footer Albus Word 12 12-12-2014 01:36 PM
print pages with footer of last page different roytom Excel 1 12-13-2010 02:09 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:20 AM.


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