If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Table of Content Auto Update
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
|
|||
|
|||
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 |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple Options Group | Patty Stoddard | Using Forms | 19 | August 4th, 2005 02:30 PM |
Access combo box-show name, not ID, in table? | write on | New Users | 30 | April 30th, 2005 09:11 PM |
Table Design | A. Williams | Database Design | 3 | April 29th, 2005 07:02 PM |
unable to repair inobox | Sudheer Mumbai | General Discussion | 1 | February 20th, 2005 11:55 AM |
Pivot Table Auto Update? | mkaake | General Discussion | 1 | September 21st, 2004 04:21 PM |