Here is my latest attempt at this. I am thinking of making a macro that
will parse the pages of a dicument and check each for the tags. Based o
nthese tags it will then set a Docvariable that is named based on the
current section and page so that it is unique. Within the header/footer I
then have a field that references the
Docvariable Ex:
{ DOCVARIABLE { =SUM({ =PRODUCT({ SECTION },10000) },{ PAGE\*ARABIC }) }
This basically make up the docvariable name based on an integer to uniquely
define the section and page so the variable is unique within the document.
In my marco, I am planning to run through each page and generate the
variables, that is if that is possible. Is it possible in VBA code to
search a couemnt page by page in a loop, so that if I find a given marker,
which is just a SEQ field the user inserted onto a page then I can in turn
use the logic to set the docvariable?
Any thoughts. comments?