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.