Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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: 4,176
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
 



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 07:50 AM.


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