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. Anonymous
    2025-04-05T00:41:25+00:00

    You're right. I would prefer using Word too, even with macros, but it seems a bit too complicated for me (just for a one time use).

    Merci beaucoup.

    Was this answer helpful?

    0 comments No comments
  2. Paul Edstein 82,871 Reputation points Volunteer Moderator
    2025-04-04T23:24:24+00:00

    If you do it in Excel, though, you risk losing the formatting, plus the hyperlinking will no longer work. The macro I gave you a link to maintains the hyperlinking.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2025-04-04T23:15:29+00:00

    I'm doing the job with Excel. Entries are easier to sort. It's not the best, but seems to work. THANKS A LOT. Merci beaucoup.

    Was this answer helpful?

    0 comments No comments