TOC question

%3CLINGO-SUB%20id%3D%22lingo-sub-1815323%22%20slang%3D%22en-US%22%3ETOC%20question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1815323%22%20slang%3D%22en-US%22%3EIn%20a%20Table%20of%20Contents%20I%20only%20want%20to%20have%20page%20numbers%20on%20the%20first%20level%20(called%20TOC1%20in%20my%20Styles).%20How%20can%20I%20remove%20page%20numbers%20from%20TOC2%2C%20TOC3%20etc....%20Thanks%20in%20advance%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1815869%22%20slang%3D%22en-US%22%3ERe%3A%20TOC%20question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1815869%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F844671%22%20target%3D%22_blank%22%3E%40Wazza19762340%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPress%20Alt%2BF9%20to%20display%20field%20codes.%20The%20TOC%20should%20look%20similar%20to%20this%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%7B%20TOC%20%5Co%20%221-3%22%20%5Ch%20%5Cz%20%5Cu%20%7D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20exact%20switches%20after%20TOC%20might%20be%20different%20in%20your%20document.%3C%2FP%3E%0A%3CP%3EInsert%20%5Cn%20%222-9%22%20before%20the%20closing%20bracket%20%7D.%20In%20the%20example%20above%2C%20it%20would%20look%20like%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%7B%20TOC%20%5Co%20%221-3%22%20%5Ch%20%5Cz%20%5Cu%20%5Cn%20%222-9%22%20%7D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20%5Cn%20switch%20suppresses%20page%20numbers%20for%20the%20specified%20levels%20(here%20all%20levels%20below%20level%201%2C%20whether%20they%20are%20present%20or%20not)%3C%2FP%3E%0A%3CP%3EPress%20Alt%2BF9%20again%2C%20then%20update%20the%20TOC%2C%20choosing%20the%20option%20to%20update%20the%20entire%20table.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor
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
2 Replies

@Wazza19762340 

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.

@Wazza19762340 

 

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-003...