Table of Content

A

AMEET

I am writing a code to update my Table of content and
table of figues. My coding is updating all page numbers
and new headings but in table of figures it doesnèt update
values which are linked with text. I can update it by
right clicking it and selecting update whole table options
but it doesnèt update when macro runs. Is it possible to
do what I am trying or not.

Many thanks
Ameet
 
C

Cindy M -WordMVP-

Hi Ameet,

For most fields, something like ActiveDocument.Fields.Update
will update them. But for tables of contents you need
ActiveDocument.TablesOfContents(1).Update
ActiveDocument.TablesOfFigures(1).Update
I am writing a code to update my Table of content and
table of figues. My coding is updating all page numbers
and new headings but in table of figures it doesnèt update
values which are linked with text. I can update it by
right clicking it and selecting update whole table options
but it doesnèt update when macro runs. Is it possible to
do what I am trying or not.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
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 :)
 

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