Forum Discussion
neillb
Mar 02, 2024Copper Contributor
Remove page numbers from a TOC
MY TOC is based on three styles, 1, 2 and 3. All styles have their number in the TOC but I don't want Style 3 to have numbers. As seen below, the newspaper and date is Style 2 and the headline Styl...
Stefan_Blom
Mar 03, 2024MVP
Edit the field code and add the \n "3-3" switch which instructs Word to exclude numbering from level 3 (Heading 3) paragraphs. Levels 1–2 and any lower levels, 4–9, will still have page numbering in the TOC.
In Word for Windows, press Alt+F9 (or Alt+Fn+F9 on some keyboards). You should see something similar to { TOC \o "1-3" \h } in place of the table of contents. Add \n "3-3" at the end:
{ TOC \o "1-3" \h \n "3-3" }
Update the table of contents. If prompted, choose the option to update the whole table.
neillb
Mar 03, 2024Copper Contributor
Thanks Stefan, brilliant.
It didn't appear to work at first as I hadn't clicked back onto the field text before pressing Alt + F9 again.
Neill
- Stefan_BlomMar 04, 2024MVP