View Single Post
  #2   Report Post  
Posted to microsoft.public.word.tables
Stefan Blom
 
Posts: n/a
Default Table of Content Auto Update

You could try the following auto macro:

Sub AutoOpen()
Dim toc As TableOfContents
For Each toc In ActiveDocument.TablesOfContents
toc.Update
Next toc
End Sub

Make sure that you store the macro in the Normal template.

For assistance, see http://gmayor.com/installing_macro.htm

--
Stefan Blom
Microsoft Word MVP


"Jane McDowell" wrote in message
...
I've created a word document with a table of content. I am

modifying this
document in xml format so there are additional sections or removal

of
sections. Is there a way for me to set the document so that when

word opens
the document, the table of content will get updated automatically to

reflect
the changes I've made? Right now, I have to open the document,

click on the
table of content and hit update.

Thanks