Document Editing Problems

How to Search for TOC and TC Fields in Microsoft Word

Chanuka GeekiyanageChanuka Geekiyanage Nov 3, 2026 870 views

Question details

The user needs to locate Table of Contents (TOC) and TC fields within a Word document, but standard search codes fail to find them.

How to Search for TOC and TC Fields in Microsoft Word
Product
Microsoft Word
Device & OS
not provided
Scenario
Trying to search for TOC or TC fields in a document, particularly those generated from poor PDF-to-Word conversions where fields may be broken or rendered as plain text.
Observed behavior
Searching for the field code '^d' does not find TOC fields because field-code display is disabled, or because the converted PDF contains ordinary text rather than functional Word fields.
Before you start

Ensure that your document actually contains functional Word fields. If it was converted from a PDF using an OCR tool, the table of contents might be plain text rather than dynamic fields.

Solution 1Recommended

Enable Field Code Display to Search with ^d

To locate field codes like TOC and TC, Word requires the field-code display to be active before performing the search.

By default, Microsoft Word hides the underlying field codes and only shows the results (like the actual table of contents). The ^d search command only looks through visible text, so you must reveal the field codes first.

1
Toggle field codes

Open your Word document and press 'Alt + F9'. Alternatively, go to File > Options > Advanced, scroll to 'Show document content', and check 'Show field codes instead of their values'.

2
Open Advanced Find

Press 'Ctrl + H' to open the Find and Replace dialog box, then click on the 'Find' tab.

3
Search for the fields

Type '^d TOC' or '^d TC' into the 'Find what' search box and click 'Find Next' to locate specific field codes.

4
Restore normal view

Once you have finished editing, press 'Alt + F9' again to toggle back to the normal display mode.

Enable Field Code Display to Search with ^d
Searching for TC Fields vs. TOC Fields: A TOC field generates the table itself, while TC fields mark the individual entries used to build the table. If your goal is to locate and modify the source entries, search for TC fields rather than the TOC field.
Free Microsoft Office alternative

Manage Documents and Fields Seamlessly with WPS Office

Struggling with poorly converted PDFs and missing TOC fields? WPS Office provides a lightweight, highly compatible alternative to Microsoft Word, featuring an exceptional built-in PDF to Word converter that preserves original document structures effortlessly.

Highly compatible with Microsoft Word formats (.docx, .doc)Accurate PDF to Word conversion preserving true TOC structuresEasily generate, update, and manage dynamic Table of ContentsFree, lightweight, and features a familiar, easy-to-navigate UI
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't the ^d search code find my TOC fields?

The ^d code specifically searches for field codes. If you haven't toggled field codes to be visible (using Alt + F9), the software will only search the displayed text and ignore the underlying codes.

What is the difference between a TOC field and a TC field?

A TOC field generates the actual Table of Contents block in your document. A TC field is a hidden entry mark placed throughout the document text to indicate what should be included in that Table of Contents.

Why did my PDF to Word conversion create multiple broken TOC fields?

Some conversion tools struggle to accurately recreate dynamic document fields. Depending on the OCR software used, they may split the table of contents into multiple separate field codes or render it entirely as static plain text.