> I have "Page X of Y" in a header where Y is normally a field of type
> wdFieldNumPages. I have modified this field manually by inserting an
[quoted text clipped - 9 lines]
>
> Thanks!
It isn't easy. See
http://word.mvps.org/FAQs/MacrosVBA/NestedFieldsWithVBA.htm.

Signature
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
Peter - 03 Feb 2006 20:45 GMT
Thank you very much. I have read the article and it is very informative. You
are right that this is not easy but, I found an easier way to accomplish what
I needed. Instead of hardcoding the number to subtract from NUMPAGES (and
subsequently update it in VBA, I substituted a DOCVARIABLE field. I did this
manually in the template. Now my macro simply updates the DOCVARIABLE and
updates the fields.
Thanks again!
Peter
> > I have "Page X of Y" in a header where Y is normally a field of type
> > wdFieldNumPages. I have modified this field manually by inserting an
[quoted text clipped - 12 lines]
> It isn't easy. See
> http://word.mvps.org/FAQs/MacrosVBA/NestedFieldsWithVBA.htm.