Word Templates Contents Page Numbers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I create a new Word document from a template I created, why are the page
numbers not automatically updating in the document that opens? They all say
page 3 in the new document. When I open the template itself thew page numbers
are correct (3 through to 21). I am on Microsoft XP.
 
Page numbers on the page, or in a table of contents? I'm not sure, given
your subject, what it is you are seeing. If it is the page numbers on the
page, there is a bug in Word that is different in different versions
(including different SRs).
See http://www.addbalance.com/word/pagexofy.htm or
http://www.mvps.org/word/FAQs/AppErrors/PageXofY.htm for information on Page
X of Y problems. You may also want to take a look at:
http://www.mvps.org/word/FAQs/Numbering/PageNumbering.htm. If it applies
you may also want to look at
http://www.mvps.org/word/FAQs/Numbering/PageNumber0.htm.
 
In the new document created using the template, the page numbers on the pages
themselves are correct, but the page numbers in the table of contents all say
3. I don't want to have to update the table of contents everytime I open a
new document.Thanks for you help
 
This often results from opening a document in Reading Layout view.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Hi Todd

Todd said:
In the new document created using the template, the page numbers on the pages
themselves are correct, but the page numbers in the table of contents all say
3. I don't want to have to update the table of contents everytime I open a
new document.

well, if Charles' links don't provide an answer, maybe you simply want
to include an AutoNew macro in the template which updates the TOC?

While page numbers that are off can certainly distract the user, one
would think that, by adding content to the new document, the TOC will
ultimately have to be updated anyway during the lifetime of the document ...

2cents
Robert
 
Robert, thanks for your posting, changes each time a document is creted from
the template are minimal so the page numbers will never change.

Can you tell me how to include an AutoNew macro in the template which
updates the TOC?
 
Hi Todd

Todd said:
Robert, thanks for your posting, changes each time a document is creted from
the template are minimal so the page numbers will never change.

Hmm. If that's true, and if also your headings never change, then -- one
might suggest unlinking the TOC would solve all problems: select the
first letter in the TOC (this selects the whole TOC field) and hit CTRL
SHIFT F9; you have now ordinary text only.

Can you tell me how to include an AutoNew macro in the template which
updates the TOC?

Caution: please take this with a large grain of salt, and test it
thorougly, as VBA is really not my specialty. If you still want an
active TOC, then it should be a one liner, something like this:

Sub autonew()
ActiveDocument.TablesOfContents(1).Update
End Sub

The macro must be saved in the template from which you are creating the
new documents.

HTH
Robert
 
Thanks Robert, I will try it out

Robert M. Franz (RMF) said:
Hi Todd



Hmm. If that's true, and if also your headings never change, then -- one
might suggest unlinking the TOC would solve all problems: select the
first letter in the TOC (this selects the whole TOC field) and hit CTRL
SHIFT F9; you have now ordinary text only.



Caution: please take this with a large grain of salt, and test it
thorougly, as VBA is really not my specialty. If you still want an
active TOC, then it should be a one liner, something like this:

Sub autonew()
ActiveDocument.TablesOfContents(1).Update
End Sub

The macro must be saved in the template from which you are creating the
new documents.

HTH
Robert
--
/"\ ASCII Ribbon Campaign | MS
\ / | MVP
X Against HTML | for
/ \ in e-mail & news | Word
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top