S
Sally Green
Hi
I'm using Word 2003 and have a template for a large document. At template
stage there is a cover page (actual page 1), a second cover page (actual page
2), a TOC (actual page 3) all in Section 1. No page numbering is required on
these pages. Currently the actual fourth page is the start of Section 2 and
page numbering commences at Page 1 on this page. Depending on the length of
the finished document the TOC could run over into a second, third or even
fourth page. In that scenario the first page of section 1 (numbered as 1)
might possibly be the 5th, 6th, or even 7th actual page in the document.
So if I end up with 14 pages in the document with only 3 pages in section 1
my last page should read Page 11 of 11 (Scenario 1). Or if I had 2 TOC
pages, so therefore had 4 pages in section 1, my last page should read Page
10 of 10 (Scenario 2).
So assuming Scenario 1:
With using Page of Numpages I would get Page 11 of 14
With using Page of SectionPages I might get Page 11 of 11 providing they
don't insert a section break mid-way (some of these documents can get to over
a hundred pages) with appendices in landscape so a section break would be
required.
I can't set a bookmark on the last page in the template so that I can use
Page of PageRef BookmarkName as I can't rely on that bookmark staying there
for the duration of the document creation. I've created a module to go to
the end of the document, create the bookmark, so that I can then use PageRef.
However, they could only run this after the doucment has been created and
they may edit it afterwards and not run the module again. I really would
like a field that can automatically update without having to rely on human
error.
I can create a bookmark after the TOC that will move down with the TOC to
give me the overall number of pages in section 1. Can I create a formula to
subtract this number from NumPages. ie:
Page {Page} of ({NumPages}-{PageRef bmLastPageNoInTOC})
This example only returns:
PAGE 11 OF (14-3)
Any suggestions would be greatly appreciated.
I'm using Word 2003 and have a template for a large document. At template
stage there is a cover page (actual page 1), a second cover page (actual page
2), a TOC (actual page 3) all in Section 1. No page numbering is required on
these pages. Currently the actual fourth page is the start of Section 2 and
page numbering commences at Page 1 on this page. Depending on the length of
the finished document the TOC could run over into a second, third or even
fourth page. In that scenario the first page of section 1 (numbered as 1)
might possibly be the 5th, 6th, or even 7th actual page in the document.
So if I end up with 14 pages in the document with only 3 pages in section 1
my last page should read Page 11 of 11 (Scenario 1). Or if I had 2 TOC
pages, so therefore had 4 pages in section 1, my last page should read Page
10 of 10 (Scenario 2).
So assuming Scenario 1:
With using Page of Numpages I would get Page 11 of 14
With using Page of SectionPages I might get Page 11 of 11 providing they
don't insert a section break mid-way (some of these documents can get to over
a hundred pages) with appendices in landscape so a section break would be
required.
I can't set a bookmark on the last page in the template so that I can use
Page of PageRef BookmarkName as I can't rely on that bookmark staying there
for the duration of the document creation. I've created a module to go to
the end of the document, create the bookmark, so that I can then use PageRef.
However, they could only run this after the doucment has been created and
they may edit it afterwards and not run the module again. I really would
like a field that can automatically update without having to rely on human
error.
I can create a bookmark after the TOC that will move down with the TOC to
give me the overall number of pages in section 1. Can I create a formula to
subtract this number from NumPages. ie:
Page {Page} of ({NumPages}-{PageRef bmLastPageNoInTOC})
This example only returns:
PAGE 11 OF (14-3)
Any suggestions would be greatly appreciated.