update table of content

L

Lina

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
 
C

Cindy M -WordMVP-

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 :)
 
F

Francois

ActiveDocument.TablesOfContents(1).Update

Thank you! Thank you! It works! Exactly what I've been looking for.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top