top of page

Creating a Table of Contents in Word should not be a great technical hurdle, but I find that the process in MS Word 2019 is not entirely intuitive, so I thought I would pass along my notes on how to go about it. After the cite check of the legal brief is completed, there's often a rush to complete the ToC as soon as possible so the brief can be filed. It will be necessary to place the title page and ToC on pages with different pagination than the rest of the brief, and create the headings for the table itself.


ree

  1. First enter a Page Break on a new line after the title. Go to Layout . . . Breaks. Then after the page break marker, enter a continuous section break:


ree

2. Then set a page break and a continuous section break at the end of the TOC/TOA section. (I assume that you're working with an add-in for Word, like Best Authority, that will generate a Table of Authorities.).


ree


3. Unlink pages numbers in the TOC/TOA section from the title page by unselecting the ‘Link to Previous’ setting on the Design tab. [Click in the Footer to get the Design tab, and select the page number.]


ree

Also in this step, change the format of the page number in this section to lower case Roman numerals, by selecting the page number in the footer and right clicking and selecting Edit Field.


ree

Delete the page number for the title page.


4. Unlink pages numbers in the BODY section from the TOC/TOA section by unselecting the ‘Link to Previous’ setting on the Design tab, and selecting the Arabic numeral format. The brief should now have three independently page numbered sections.


ree

Right click on the page number and select 'Format Page Numbers . . . ' to confirm that each section begins at 1.


ree

At this point run the ToA.


5. On the Home tab define the formatting for the ToC. Go to the option for Multilevel list in the Paragraph section, and then select 'Define New Multilevel List . . .'



ree


So for level 1 because we have headings like this in brief:


ree

. . . we leave the 'Enter formatting for number' box blank; set the number alignment to 'Centered', and also set the Font to boldfaced.


ree

Then for level 2, we select uppercase Roman numerals; set the alignment on the left, and again boldface the text.


ree

Then on level 3, we select uppercase letters; set the alignment on the left with a further indent; and boldface the text.

ree


6. Select the headings in the Word document and then on the References Tab in the Table of Contents section select Add Text and set the level for each heading one by one.


ree

If everything is working correctly you should see the headings added on the Navigation pane at the left.


ree

7. The heading should show up on the Navigation Pane (to display this go to View . . . Show section.) For some reason, MS Word 2019 often alters the capitalization of the headings in the Navigation pane. But this doesn't seem to change the final result when the ToC is inserted into the document.


8. On the References tab add in the Table of Contents on the second page of the Word document, or the first page of the section section.


ree


You will now have a ToC which can be automatically updated by selecting the 'Update Table' option which appears at the top when you click into the table.



ree


 
 

If you want to highlight multiple strings in a Word document, you can do so by utilizing a simple macro posted here, by Susan Harkins with Tech Republic.


In this example we have a document in which we want to search for any one of five terms.


ree

Edit the macro, posted below, so that the strings or words we want to highlight are listed one by one in the lines beginning 'WordCollection'. Set the number for each of these things in the parentheses after 'WordCollection' so that each term is successively numbered, but begin with zero:


ree


On the third line set the number after 'Dim WordCollection' in parentheses to the match number of terms you're searching for. To be clear, if the last term is preceded by 'WordCollection(4)' set the number on the third line of the visual basic code to 5.


You can set the color of the highlighting on the first operative line after those in which the searched for terms are listed.


ree


The macro does take a good deal of time to run. If you are searching for multiple strings in a long document, it may take several minutes to finish running.


ree

Searched for strings which appear as part of longer words will be highlighted.


As always, this was tested and confirmed to work correctly by Litigation Support Tip of the Night.




Sub HighlightWords()


Dim Word As Range


Dim WordCollection(5) As String


Dim Words As Variant


'Define list.


'If you add or delete, change value above in Dim statement.


WordCollection(0) = "whale"


WordCollection(1) = "Ahab"


WordCollection(2) = "sailor"


WordCollection(3) = "sea"


WordCollection(4) = "ivory"


'Set highlight color.


Options.DefaultHighlightColorIndex = wdPink


'Clear existing formatting and settings in Find feature.


Selection.Find.ClearFormatting


Selection.Find.Replacement.ClearFormatting


'Set highlight to replace setting.


Selection.Find.Replacement.Highlight = True


'Cycle through document and find words in collection.


'Highlight words when found.


For Each Word In ActiveDocument.Words


For Each Words In WordCollection


With Selection.Find


.Text = Words


.Replacement.Text = ""


.Forward = True


.Wrap = wdFindContinue


.Format = True


.MatchCase = False


.MatchWholeWord = False


.MatchWildcards = False


.MatchSoundsLike = False


.MatchAllWordForms = False


End With


Selection.Find.Execute Replace:=wdReplaceAll


Next


Next


End Sub







 
 

Certain formatting in a MS Word document may prevent you from finding (and replacing) paragraph marks (or pilcrows) which can usually be located with the ^p formatting code in the Find and Replace tool. In this example, we can see that while there are clearly two pilcrows in a row in several locations in the document, Word isn't finding them.


ree

We can locate the pilcrows by instead searching for ^13 in place of ^p.


ree

 
 

Sean O'Shea has more than 20 years of experience in the litigation support field with major law firms in New York and San Francisco.   He is an ACEDS Certified eDiscovery Specialist and a Relativity Certified Administrator.

The views expressed in this blog are those of the owner and do not reflect the views or opinions of the owner’s employer.

If you have a question or comment about this blog, please make a submission using the form to the right. 

Your details were sent successfully!

© 2015 by Sean O'Shea . Proudly created with Wix.com

bottom of page