Is it possible to arrange a table of contents in alpha order ? Thanks

Anonymous
2025-04-01T23:02:27+00:00

Is it possible to arrange a table of contents in alphabetical order? Thanks

Microsoft 365 and Office | Word | For home | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Paul Edstein 82,871 Reputation points Volunteer Moderator
2025-04-04T00:09:28+00:00

For a macro to automate the process of converting a Table of Contents to a sorted table, see:

Add bookmark for each Headings

For PC macro installation & usage instructions, see: http://www.gmayor.com/installing\_macro.htm

For Mac macro installation & usage instructions, see: https://wordmvp.com/Mac/InstallMacro.html

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments
Answer accepted by question author
Anonymous
2025-04-03T23:06:49+00:00

It's possible, but not straightforward. You convert the table of contents to a two column table using the tab as a delimiter. Next, you sort by Column 1, and then convert the table back to text again, using tab as a delimiter. The page links are maintained, but there is no hierarchical indentation. This simply produces a single alphabetized list. Once the table of contents is alphabetized, you need to select all the entries and insert a tab stop for the page numbers.

The challenge is the first step. You want each entry in the table of contents to be its own row in the table. One way to achieve this is to go to the first entry in the table, and replace the first letter with a space and the letter. Essentially, you want a space before the first character, but the space must be inside the shaded portion. Then when you select the table to convert it, you select starting from the bottom omitting the lone paragraph marker, and select everything except the leading space character you entered for the first character.

I wouldn't recommend doing this, unless your table of contents had lots of entries. For tables with just a few entries, it would be quicker to sort by cutting and pasting.

Was this answer helpful?

0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Charles Kenyon 172K Reputation points Volunteer Moderator
    2025-04-01T23:04:51+00:00

    No. A table of contents is always arranged in the order of appearance.

    On the other hand, an Index will usually be in alphabetical order.

    You can have both.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2025-04-04T23:13:28+00:00

    Merci beaucoup. Thanks a lot.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2025-04-01T23:19:10+00:00

    Merci. Je suis vraiment désolé. It's a shame !! I will do the job by hand... 😩

    Was this answer helpful?

    0 comments No comments