A family of Microsoft word processing software products for creating web, email, and print documents.
{TOC \o \h \z \u} won't work because no TOC style level is specified for headings 6 to 9.
{TOC \o "1-5" \h \z \u \t "Heading 6,1,Heading 7,2,Heading 8,3,Heading 9,4"} should work. It tells the TOC feature to collect all paragraph styles with outline levels 1 to 5 (usually just Headings 1 to 5) and to collect Headings 6 to 9, but show them in TOC styles 1 to 4.
If the appendix headings do not show up, you must check teh document, particularly headings6 to9 and make sure they are actually in the heading 6 to 9 paragraph styles. Use the Styles pane to select all instances of each style and then reapply it.
Pam