Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
Jane McDowell
 
Posts: n/a
Default 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   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










Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suppress prompt to update table of contents LurfysMa New Users 2 July 31st 05 07:44 AM
Table headers/footers and layout Keith Page Layout 1 April 8th 05 07:37 PM
Table AutoFormats vs. Table Styles confusion Tony Jollans Tables 5 March 6th 05 07:18 PM
Word should auto update Formulas in the same way Excel does SmokeyMcPotHead Microsoft Word Help 3 February 26th 05 03:37 PM
Table of Content problem Vincdc Microsoft Word Help 6 December 23rd 04 08:01 PM


All times are GMT +1. The time now is 09:45 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"