Thread: [Solved] Indexing terms in a document
View Single Post
 
Old 08-15-2022, 05:21 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by markpkessinger View Post
I hope you don't mind if I pick up where glnz left off in https://www.msofficeforums.com/word-...ned-terms.html, because I'm looking for the exact same thing
That's fine, but please don't resurrect 10-year old threads with requests that go beyond their scope.
Quote:
Originally Posted by markpkessinger View Post
So we need to find ONLY those terms that are double in quotation marks, and we eonly want the instance in quotation marks to be indexed, and no other instances of the term/word.
Doing that would require only minor changes to the macro, but it seems you want something rather more than that.
Quote:
Originally Posted by markpkessinger View Post
One shortcoming of your method, too, is that it does not provide the index codes in the document.
...
The other benefit of having the index codes in the document is that it allows one to very quickly scan through the document to make sure if all the terms have been included, rather than having to flip from the index, then to a page number, for each term.
If that's what you want, use Word's built-in indexing tools - which you can apply only to quoted terms. The macro in the original thread is for those who don't want to clutter their documents with XE fields. The macro approach also allows one to customize the indexing sort order (see, for example https://www.msofficeforums.com/word-...ure-index.html) - which Word can't do. Refreshing the index in that document is as simple as re-running the macro.
Quote:
Originally Posted by markpkessinger View Post
Sometimes, it is necessary to customize a particular reference. For example, if you have a document with defined terms in the main document, and also in various schedules or exhibits we need to be able to direct the reader to the correct Schedule and page number within the schedule. So in the index, y9ou might see one term referring a page number, and another referring to "A-2" (meaning page 2 of Exhibit A).
In that case, you'll need to ensure your indexing concordance file, if you use one, is appropriately designed; otherwise you'll need to process those custom entries manually. Coding a macro to do all that for every possible scenario would likely entail more effort than the time it would save.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote