Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.


Word has Headings 1 - 9, but by default only 1 - 3 will show in the TOC.

So, to apply a style to selected text other than Heading 1 - 3, I have done this:

  1. select the text
  2. right-click the selected text
  3. select Styles... from the dropdown list
  4. select Apply Styles... from the dropdown list
  5. type Heading 4 into the textbox, and hit enter


Now that the text is styled correctly, it does not show in the TOC! I have read mention of changing the "field codes" of the TOC to something like this: { TOC \o "1-4" }, but such examples only applied to Word 2007...

So how do you do this in Word 2010?

share|improve this question
    

1 Answer 1

up vote 2 down vote accepted

You can use the same method as in Word 2007. Click the 3 vertical dots in the box that says "Update Table" at the top so the whole table is selected, then right click and select "Toggle Field Codes" (or type Shift+F9), and edit the field code to include whatever header levels you want. So, e.g., to include Header levels 1-4, the field code would be {TOC \o "1-4" \h\z\u}. After editing the field code, select the entire TOC again, right click, and select "Toggle Field Codes" again. Then click "Update Table" and choose to update the whole table.

share|improve this answer
    
Thanks for the quick reply @darthbith. Hmm, so when I do this, the entire selected text of the TOC is replaced with the existing field code {TOC \o "1-3" \h\z\u}. How do I stop it from deleting all of the TOC's text? –  Ian Campbell Aug 15 '13 at 16:05
    
Nevermind, I just figured it out -- following these instructions I modify the field code to {TOC \o "1-4" \h\z\u} as was suggested. Then I click on the 3 vertical dots on the upper-left of the TOC again, right click the TOC textarea and select Toggle Field Codes again to revert it back to its' text. Then you have to update the TOC to see the change take affect. –  Ian Campbell Aug 15 '13 at 16:17
1  
Ah yes, forgot to mention how to change it back :-) I'll edit the answer. Glad it worked for you! –  darthbith Aug 15 '13 at 16:26
1  
Also, see here: superuser.com/questions/365346/… –  darthbith Aug 15 '13 at 16:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.