#1
|
|||
|
|||
Macro for mark index entry for every word in a document?
Is there a Macro for 'mark index entry' for every word in a document? |
#2
|
||||
|
||||
One could be created but it seems a bit pointless so you would need to convince us as to why it would be useful. The process described below would be far faster to perform manually than it would be to create with a macro. The macro therefore only makes sense if you need to do this on a regular basis.
The basic workflow I would follow would be to: Copy the entire document as text only into a new blank document Replace all the spaces with returns to make a series of one word paragraphs Sort the text alphabetically Loop through all the paragraphs and remove all empties and duplicates (possibly do this Excel for simplicity) Save this doc (for use as the concordance file) Now with the original doc, run the autoindex function with the new doc as the concordance file.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
||||
|
||||
Or you could run the macro in this thread: https://www.msofficeforums.com/word/...sage-same.html
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
Quote:
I will use that method. But ok, I will explain what I would need it for: I write lengthy non-fiction history books. Sometimes up 600 pages. At the end of a book I would like to have a mentioned Names and Places list with the corresponding page numbers. It is almost impossible to mark every name and place throughout the book. It would be easier if a list can be generated that simply includes every used word with page number. Duplicates or irrelevant words can then simply be removed. That's not a problem. Or even better would be: a list generated with every word not recognized by the dictionary with page number. That way it would be exactly the right words: names and places and foreign words. I'm sure there are many people out there who actually need such a tool. Regards, Jay |
#5
|
||||
|
||||
In that case, when you select an item for indexing, why don't you let Word's Indexer automatically mark all of those entries for you? It seems to me you making this a much harder task than it needs to be.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#6
|
||||
|
||||
Thanks for the explanation. That is a very different requirement to indexing every word in a document. In the case of a Names and Places index, it would make more sense to plan to index only words that start with a capital letter. This would remove a lot of the unwanted words immediately.
You would also want to do a lot of work to manage multiple words that form a name eg 'Alan Smith' should be indexed as "Smith, Alan" instead of two separate terms 'Rip Van Winkle' should be indexed as "Van Winkle, Rip" 'Stratford-on-Avon' should be indexed as a single term 'Stratform-upon-Avon' should use the same indexing term as the other variant 'Richard the Lionheart' should be indexed as a single term etc The concordance file can handle the correct assignations but the rules a macro would need to include would be very complex to manage this automatically. Personally, I wouldn't be approaching this task from the direction that you are taking. The index you end up with would be meaningless unless you manually fix all the compound names to index them as a group. I would think that you should be adding to your concordance file manually. Concordance files typically include all indexable terms and may include many terms that don't actually appear in 'this' document but might appear in similar documents. You might be able to automate the initial population of a concordance file eg by importing a comprehensive list from other sources such as a postcode list or a family tree.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
Tags |
macro |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I create an index of every word in a document? | jbengal | Word | 5 | 11-23-2022 02:17 PM |
Mark Entry | mohsen.amiri | Word | 15 | 07-02-2015 02:43 PM |
Skipping an Index entry | philippe.delobbe | Mail Merge | 0 | 04-30-2015 05:49 AM |
Hyperlinking from the Index to the Origin Mark | Phil H | Word | 2 | 08-30-2013 04:03 AM |
Options of Index Mark Entry | smaria | Word | 1 | 04-22-2010 05:48 AM |