PC Review


Reply
Thread Tools Rate Thread

Automatically update TOC on open

 
 
caj
Guest
Posts: n/a
 
      10th Jun 2008
I have a .dot that is saved to the web, that is used by several people to
create other documents. Problem is that once the docs are completed and
posted to the web the page numbers will sometimes change to something else.

This pdroblem can be corrected by pressing F9 each time to update the TOC,
But is there some code that will update the TOC when the documents are
opened?
 
Reply With Quote
 
 
 
 
caj
Guest
Posts: n/a
 
      11th Jun 2008
Thanks. That worked great!!

"Cindy M." wrote:

> Hi =?Utf-8?B?Y2Fq?=,
>
> > I have a .dot that is saved to the web, that is used by several people to
> > create other documents. Problem is that once the docs are completed and
> > posted to the web the page numbers will sometimes change to something else.
> >
> > This pdroblem can be corrected by pressing F9 each time to update the TOC,
> > But is there some code that will update the TOC when the documents are
> > opened?
> >

> It would have to be a macro. For example:
>
> Sub AutoOpen 'Name is required
> ActiveDocument.TablesOfContents(1).Update
> End Sub
>
> Cindy Meister
> INTER-Solutions, Switzerland
> http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
> http://www.word.mvps.org
>
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open, Update, and Close files automatically EZ Microsoft Excel Programming 5 11th Aug 2009 10:45 PM
Using an update query to update amount in stock automatically seagulls soaring Microsoft Access 0 27th Feb 2008 06:49 PM
Using an update query to update amount in stock automatically seagulls soaring Microsoft Access 0 27th Feb 2008 06:49 PM
Have date automatically update each time I open the spreadsheet =?Utf-8?B?QmV0aDE0MTU=?= Microsoft Excel Misc 3 6th Nov 2006 09:14 PM
Can I update a worksheet automatically while it's open elswhere? =?Utf-8?B?Unlhbg==?= Microsoft Excel Misc 0 19th Oct 2005 06:18 PM


Features
 

Advertising
 

Newsgroups
 


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