#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
Can use the Index feature instead?
It is automatically in alphabetical order. Indices - Complex Documents |
#3
|
|||
|
|||
Quote:
|
#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 |
|
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 |
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 |