![]() |
|
|
|
#1
|
|||
|
|||
|
Hi All,
Does anyone know how I create this type of ToC? It doesn't seem to be the generic type available. There is a heading page available before each chapter(which I assume the pages rely on to build the Toc) Would each ToC section then be an individual ToC? |
|
#2
|
|||
|
|||
|
If you want your table of contents to look like that you'll either need to create it manually, or script it using VBA. Word's TOC has only very limited options and a different colour per section is not one of them.
|
|
#3
|
|||
|
|||
|
Do we know the VBA method?
|
|
#4
|
|||
|
|||
|
There isn't a standard "VBA method". You'll need to write the code yourself to meet your own specific requirements. Using VBA you will still end up with a manual table of contents that does not update automatically.
|
|
#5
|
||||
|
||||
|
You could adapt the code in post #6 at: https://www.msofficeforums.com/word-...-headings.html. As you'll see from the code there - which is just to produce hyperlinks - this isn't a trivial exercise.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#6
|
|||
|
|||
|
It will not be an automatic TOC.
However, you could fairly easily set up the chapter divisions using the \b switch. Work it as Automatic as you write and refine. Then add the color as a final touch. That could be done manually, or using vba. See TOC Tips and Tricks by Suzanne Barnhill, MVP. |
|
#7
|
||||
|
||||
|
You can do it with lots of separate TOCs in pairs pointing at the bookmarked ranges. The graphic shows the field codes and the result. You can see that I've put the level 2 TOC inside a table to give you the top border and side colour bar.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Create Floating Table of Contents in Word Mac 2008?
|
cheech1981 | Word | 2 | 01-28-2017 09:32 AM |
| How do I create a dynamic table of contents | dschrader | PowerPoint | 0 | 10-12-2015 12:38 PM |
| Table of contents, the correct way to create | blockie | Word | 2 | 08-15-2014 06:36 PM |
| Need to Create 2 Unrelated Table of Contents in Document | CoolChick | Word | 1 | 07-02-2014 05:08 PM |
Need to create a "custom" table of contents type thing
|
tsmsohmcog | Word | 2 | 04-11-2013 08:46 AM |