Forum Discussion
Word modified table of contents question
I have Word 2010 on my laptop, and Word 2019 on my desktop. I am writing a document on my laptop with 2010 but can move to my desktop with 2019 if I have to.
Question: In the TOC, how can I make it so that the page number is only visible on level one, but not level 2 or 3 etc? Below is the format that I want to print.
Chapter I . . . . . . . . . . . . 10
How The West Was Won
The Day Of The Week That The West Was Won
Chapter II . . . . . . . . . . . .15
Saloons And Cowboys
How Cowboys Got Drunk
Chapter III . . . . . . . . . . . 20
Gunfights And The Aftermath
Medical Treatment For Gunshot Wounds
Neuro-VISION Press ALT+F9 to toggle on the display of the field codes in the document. In place of the Table of Contents, you will then see something like:
{ TOC \o "1-3" \h \z \u }
To that field add \n 2-3 as shown below:
{ TOC \o "1-3" \n 2-3 \h \z \u }
Press Alt+F9 again to toggle of the display of the field codes in the document and then select the Table of Contents and press F9 to update it.
6 Replies
Neuro-VISION Press ALT+F9 to toggle on the display of the field codes in the document. In place of the Table of Contents, you will then see something like:
{ TOC \o "1-3" \h \z \u }
To that field add \n 2-3 as shown below:
{ TOC \o "1-3" \n 2-3 \h \z \u }
Press Alt+F9 again to toggle of the display of the field codes in the document and then select the Table of Contents and press F9 to update it.
- Neuro-VISIONCopper ContributorDoug, that works perfectly, thank you!
Why didn't I think of that? I mean it's so user friendly that -- never mind.
Thank you very much!
Regards,
Alan- Lenka_KerumovaIron Contributor
Doug is spot on!
There is more you can do, search for field switches.
Try this for start - where applicable, they also list available switches:
List of field codes in Word (microsoft.com)
This might interest you:
Field codes: TOC (Table of Contents) field (microsoft.com)
This is an older article, but it can take you to other information when searching:
Format (\*) field switch - Microsoft Office Word 2003 Documentation
You have to search the internet a bit to get relevant information; unfortunately, I didn't find one page which would describe all - as MS used to do with previous versions :(.