Forum Discussion
Wazza19762340
Oct 24, 2020Copper Contributor
TOC question
In a Table of Contents I only want to have page numbers on the first level (called TOC1 in my Styles). How can I remove page numbers from TOC2, TOC3 etc.... Thanks in advance
This is a duplicate question already asked and answered in the Microsoft Community at https://answers.microsoft.com/en-us/msoffice/forum/all/table-of-contents/906f6a48-ffe3-490f-9961-003771e104ab
Press Alt+F9 to display field codes. The TOC should look similar to this:
{ TOC \o "1-3" \h \z \u }
The exact switches after TOC might be different in your document.
Insert \n "2-9" before the closing bracket }. In the example above, it would look like
{ TOC \o "1-3" \h \z \u \n "2-9" }
The \n switch suppresses page numbers for the specified levels (here all levels below level 1, whether they are present or not)
Press Alt+F9 again, then update the TOC, choosing the option to update the entire table.