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
 
Top