Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2020, 11:07 AM
Dekade Dekade is offline Ideas for a ToC Alphabetic Macro Windows 10 Ideas for a ToC Alphabetic Macro Office 2016
Novice
Ideas for a ToC Alphabetic Macro
 
Join Date: Aug 2020
Location: Northwest Indiana, USA
Posts: 17
Dekade is on a distinguished road
Default Ideas for a ToC Alphabetic Macro

Are there any MSWORD 2016 forum ideas for a macro or some sort of automation to order/reorder a ToC into Heading Level 1 alphabetic order?



I am creating a very large document of instructions. I would like the Table of Contents to be in alphabetic order for each Heading Level 1.

Is there any way this can happen either - as I go automatically, or, via a macro button? OR, Will I have to [manually alphabetically place] each section of the entire document?

Kinda weird, I know, but it's what I would like to achieve with as little manual work as possible.

Thanks, Dekade
Reply With Quote
  #2  
Old 09-08-2020, 01:18 PM
Charles Kenyon Charles Kenyon is online now Ideas for a ToC Alphabetic Macro Windows 10 Ideas for a ToC Alphabetic Macro Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,082
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Can use the Index feature instead?

It is automatically in alphabetical order.
Indices - Complex Documents
Reply With Quote
  #3  
Old 09-08-2020, 03:35 PM
Dekade Dekade is offline Ideas for a ToC Alphabetic Macro Windows 10 Ideas for a ToC Alphabetic Macro Office 2016
Novice
Ideas for a ToC Alphabetic Macro
 
Join Date: Aug 2020
Location: Northwest Indiana, USA
Posts: 17
Dekade is on a distinguished road
Default

Quote:
Originally Posted by Charles Kenyon View Post
. . . It is automatically in alphabetical order.
Indices - Complex Documents
Thanks, I'll have to take some time and study this. It might be my answer. Thanks again.
Reply With Quote
  #4  
Old 09-08-2020, 04:14 PM
Guessed's Avatar
Guessed Guessed is offline Ideas for a ToC Alphabetic Macro Windows 10 Ideas for a ToC Alphabetic Macro Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Yep, a strange request. It is possible with a macro but I'm not sold on the usefulness and would also suggest an Index instead. If that doesn't suit...

You didn't specify how many levels the ToC goes to nor what you want for the Level 2+ paras either. What about actually rearranging the document into alphabetic order before building the TOC?

Assuming you want other levels and don't want to sort the lower levels, I would consider building a series of ToC fields with the bookmark switch working. To do this, create bookmarks around each 'section' eg from the first heading 1 to immediately before the next heading 1 you create the bookmark 'ahead'. The next section could be 'bhead' etc.
If the bhead section is alphabetically in front of ahead then the ToC fields could then be
{TOC \o "1-3" \b "bhead"}
{TOC \o "1-3" \b "ahead"}

You would still have to manually determine the bookmark order but if your Heading 1s don't change much then it probably isn't that onerous.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional formatting for non-alphabetic data dbbath Excel 3 07-25-2017 05:09 AM
Sorting in alphabetic order Dimsok Word VBA 5 09-10-2014 02:58 AM
MergeField Alphabetic Ordinal substitutes _ for Z khinnenkamp Mail Merge 1 09-29-2013 07:01 PM
Ideas for a ToC Alphabetic Macro Resorting macros in alphabetic order? New Daddy Word VBA 1 02-06-2012 06:05 AM
How to sort word text in alphabetic order . crossing Word 8 01-20-2012 09:51 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft