Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / May 2006

Tip: Looking for answers? Try searching our database.

update table of content

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lina - 27 Feb 2006 15:19 GMT
Hello
I have a word template that from start includes some text and a table of
content. When the macro starts, a dialog box is shown and the user make some
choises, for example language. Depending on which language that is chosen the
text, that is input as document variables, changes. When you press the ok
button everything is ok except from the table of content which will not
update. I have tried to update fields but it wont help. I can update it
manually but it would be nice if it looked ok from the start. Can anyone help
me. Thanks
Cindy M  -WordMVP- - 28 Feb 2006 13:13 GMT
Hi =?Utf-8?B?TGluYQ==?=,

> When you press the ok
> button everything is ok except from the table of content which will not
> update. I have tried to update fields but it wont help.

Try
   ActiveDocument.TableOfContents(1).Update

Update for fields doesn't apply to TOCs.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :-)
Lina - 01 Mar 2006 08:28 GMT
Worked perfectly! Thanks!

"Cindy M  -WordMVP-" skrev:

> Hi =?Utf-8?B?TGluYQ==?=,
>
[quoted text clipped - 14 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Francois - 19 May 2006 16:58 GMT
ActiveDocument.TablesOfContents(1).Update

Thank you! Thank you!  It works! Exactly what I've been looking for.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.