Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
caj caj is offline
external usenet poster
 
Posts: 16
Default Automatically update TOC on open

I have a .dot that is saved to the web, that is used by several people to
create other documents. Problem is that once the docs are completed and
posted to the web the page numbers will sometimes change to something else.

This pdroblem can be corrected by pressing F9 each time to update the TOC,
But is there some code that will update the TOC when the documents are
opened?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default Automatically update TOC on open

Hi ?B?Y2Fq?=,

I have a .dot that is saved to the web, that is used by several people to
create other documents. Problem is that once the docs are completed and
posted to the web the page numbers will sometimes change to something else.

This pdroblem can be corrected by pressing F9 each time to update the TOC,
But is there some code that will update the TOC when the documents are
opened?

It would have to be a macro. For example:

Sub AutoOpen 'Name is required
ActiveDocument.TablesOfContents(1).Update
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
caj caj is offline
external usenet poster
 
Posts: 16
Default Automatically update TOC on open

Thanks. That worked great!!

"Cindy M." wrote:

Hi ?B?Y2Fq?=,

I have a .dot that is saved to the web, that is used by several people to
create other documents. Problem is that once the docs are completed and
posted to the web the page numbers will sometimes change to something else.

This pdroblem can be corrected by pressing F9 each time to update the TOC,
But is there some code that will update the TOC when the documents are
opened?

It would have to be a macro. For example:

Sub AutoOpen 'Name is required
ActiveDocument.TablesOfContents(1).Update
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Links do not update automatically. Jim Ransford Microsoft Word Help 3 June 15th 07 09:15 AM
Links won't automatically update Pamela Microsoft Word Help 0 June 17th 06 06:44 PM
update automatically hgh972 Microsoft Word Help 1 February 2nd 05 11:40 PM
Automatically update style Øyvind Alsos Microsoft Word Help 2 January 14th 05 01:19 PM
Automatically Update Style Cloudburst99 Microsoft Word Help 1 January 5th 05 06:08 PM


All times are GMT +1. The time now is 11:23 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"