How to Delete Page Numbers from Table of Contents

Aug 15, 2020 ยท 2 minute read

If you want to delete the pages numbers from the table of contents you can easily follow these steps;

1- Click on the References tab.

word document home tab

2- In the table of contents part click on the “Custom table of contents”.

custom table of contents

3- Unselect “Show page numbers”

4- Click ok.

table of contents show page number word

5- Click on the Yes.

replace table of contents

You can see, all the page’s numbers were deleted.

remove page number table of contents

How to Remove Page Numbers in Table of Contents with Field Codes.

If you want to delete page numbers only in specific levels you could not use the previous method and you must use field codes.

Here we are going two explain this method with two examples, in the first example we will remove page numbers in the table of contents with 3 levels and in the second method we have a table of contents with four levels and we want to remove page numbers in the second and third and fourth levels.

First Example

Here we have a table of contents with three levels and we want to remove page numbers in the second and third levels.

For that you should follow these steps;

table of contents three levels word

1- Press Alt + F9

Here you can see, your table of contents was converted to the formula.

table of contents fieldcodes word

2- At the end of the Formula add this switch, “\n 2-3”

This switch says remove page number in level two and three.

table of contents fieldcodes removepagenumber code word

3- Update table of contents and choose “Update Entire Table” option.

4- Click ok.

5- Press Alt + F9 again you can see the page number in the second and third levels were removed in the table of contents.

update table of contents word

Second Example

In this example, we have a table of contents which manually the fourth level was added in it and we want to remove page numbers in the second and third and fourth levels.

table of contents four level word

1- Press Alt + F9

table of contents fieldcodes customlevels codes word

Here you can see this switch was added to the formula

\t"Custom style,4"

because we manually added level four to this table of contents.

2- Add

“\n 2-4 "

before the previous switch, you should pay attention you should have space after n and number 4.

table of contents fieldcodes removepagenumber level2to4 codes word

3- Update table of contents and choose “Update entire table” and click ok.

update table of contents word

You can see all the pages number in the second and third and fourth levels were removed.

table of contents removepagenumber level2to4

word table of content