TOC NameLocal

T

Tomcat

Hi Group:

I am the NameLocal of the Paragraph Style in the TOC to determine the level of the TC item. the code looks like ActiveDocument.TableOfContent(1).Paragraphs[1].style.NameLocal. for most documents it returns something like "TOC 1", "TOC 2" ... I use the number at the end of the string as TC level. but one of my document returns something like "Heading 2", "Heading 3". Is there any work around? and what cause this to happen?

thanks

Tomcat.
 
K

Klaus Linke

Hi Tomcat,

Have you checked the document whether the TOC uses heading styles?
Don't know how that could have happened, but it should revert to TOC styles if
you update it (F9).

Regards,
Klaus
 

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