View Single Post
 
Old 02-21-2014, 02:29 PM
Cosmo Cosmo is offline Windows Vista Office 2007
Competent Performer
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default

Sorry, here's the basic calculation I am using (I need to tell how many pages exist from a certain point to the end of the document):

{= {NUMPAGES} - {PAGEREF FirstSectionBreak }}

If the bookmark 'FirstSectionBreak ' is renamed, or missing, I have seen either a syntax error, or some other error. I'd like to do something like this (pseudocode):

{= {NUMPAGES} - (IF bookmarkExists{FirstSectionBreak }, {PAGEREF FirstSectionBreak }, 0 ) }
Reply With Quote