Automatically update TOC on open

C

caj

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?
 
C

caj

Thanks. That worked great!!

Cindy M. said:
Hi =?Utf-8?B?Y2Fq?=,

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)


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

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

Similar Threads


Top