Thanks. That worked great!!
"Cindy M." wrote:
> Hi =?Utf-8?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 :-)
>
>