Formatting Table of Contents Styles

D

Dan

Hi

I have a macro set up to insert a table of contentsand to show 2 levels. The 2 levels I want to show are 2 styles I have created - Section heading and Subsection heading. I cant seem to remove the other styles from the TOC using VBA (heading 1 etc). I can go in manually after and remove them but I want them to be taken out on the macro as it is in a template that will be used by many people

Can anyone help me

thank

Dan
 
K

Klaus Linke

Hi Dan,

There shouldn't be any need to remove stuff from the TOC either using VBA
or manually.

Try something like
{ TOC \h \z \t "Section heading,1,Subsection heading,2" }

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