In Microsoft Word, is there any way to search for text in the "headings" of a document only?
I'm currently using Word 2007 and 2010.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
HOWTO Search only the Headers: In MSWord\References tab - Add the 'Table of Contents' to the beginning of the document, then do a standard search (which will start at the beginning of the document which is where your table of contents and that includes only your headers)... so searching starts with the Table of Contents, which only includes Headers.
BACKGROUND: This fix worked for me using Word2016. I have large documents and use Headers and the Navigation Pane to organize my data and sometimes I want to search my doc, but want to return results ONLY from the headers... not the general text from the body. (Very useful for querying generic terms and being able to limit results to only the headers). I usually use the 'Navigation Pane' to move around to different sections in the document. I never really use the Table of Contents at the beginning of the document, but has been useful to add the Table of Contents just for searching ONLY the headers.