Thanks for this... I will try the Macro today and let you know how it goes.
Graham Mayor wrote:
[Quoted Text] >> I have tried the Table of Content function, but it does not >> alphabetize the recipe titles. The index is the only way (I think) to >> actully get the order I am looking for....is there a way to >> alphabetize the TOC and have it update without unlinking the TOC? > >The short answer to that is no, but you could save the TOC field as an >autotext entry for ease of re-insertion. The following macro will unlink and >sort the TOC. When you wish to make changes that will reflect in the TOC, >replace the TOC with the field from the autotext entry and run the macro >again. > >Sub SortAllTOC() >Dim oTOC As TableOfContents > For Each oTOC In ActiveDocument.TablesOfContents > oTOC.Update > oTOC.Range.Select > With Selection > .Fields.Unlink > .Sort > .Font.Color = wdColorBlack > .Font.Underline = wdUnderlineNone > .HomeKey wdStory > End With > Next oTOC >End Sub > > http://www.gmayor.com/installing_macro.htm> -- Message posted via http://www.officekb.com
|