View Single Post
 
Old 08-06-2019, 09:54 PM
Swarup Swarup is offline Windows 10 Office 2016
Competent Performer
 
Join Date: Jul 2018
Posts: 185
Swarup is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
Forget the macro if you don't have the confidence to run it.

To debug your flawed nested fields, try each field on their own
What does { Page } return?
It returns '6', which is correct. (This is page 6, and the 2nd page of the 2nd section.)

Quote:
Originally Posted by Guessed View Post
What does { PageRef D37} return?
It returns '4', which is correct. (Page D37 is the bookmark for the last page of section one, which is page 4.)

Quote:
Originally Posted by Guessed View Post
If both these return what you would expect, try putting them both inside to give
{={ Page }-{ PageRef D37} }
When used individually, they each give correct returns.
When used together as you show above it gives syntax error.
Reply With Quote