TOC Problem

S

S Shulman

Hi all

I keep having the following problem, I create a long document in VBA then I
insert in VBA table of contents and it keeps making entries for normal text
even though this type of text is not included in the TOC list.

When I insert the table of content manually the samething happens but not
all the time
I would like to point out that the document has Word Form fields (I don't
know whether this is relevant)

Thank you in advance,
Shmuel
 
S

Stefan Blom

Are you using the TableOfContents collection when you create the TOC?

If you build the table of contents by inserting a TOC field from the
Fields collection, explicitly specifying the necessary field switches,
does that make a difference?

For information about the TOC field switches, please consult Word Help
and http://word.mvps.org/faqs/formatting/TOCSwitches.htm.
 

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