![]() |
#4
|
||||
|
||||
![]()
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 |
|
![]() |
||||
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 |
![]() |
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 |