Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.tables
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.word.tables
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Suppress prompt to update table of contents | New Users | |||
Table headers/footers and layout | Page Layout | |||
Table AutoFormats vs. Table Styles confusion | Tables | |||
Word should auto update Formulas in the same way Excel does | Microsoft Word Help | |||
Table of Content problem | Microsoft Word Help |