A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Table of Content Auto Update



 
 
Thread Tools Display Modes
  #1  
Old November 18th, 2005, 08:13 PM posted to microsoft.public.word.tables
external usenet poster
 
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  
Old November 22nd, 2005, 08:28 AM posted to microsoft.public.word.tables
external usenet poster
 
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










 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 03:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.