Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-12-2015, 07:28 AM
Jay Jay Jay Jay is offline Macro for mark index entry for every word in a document? Windows 7 64bit Macro for mark index entry for every word in a document? Office 2013
Novice
Macro for mark index entry for every word in a document?
 
Join Date: Aug 2015
Posts: 7
Jay Jay is on a distinguished road
Default 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?
Reply With Quote
  #2  
Old 08-12-2015, 06:40 PM
Guessed's Avatar
Guessed Guessed is offline Macro for mark index entry for every word in a document? Windows 7 32bit Macro for mark index entry for every word in a document? Office 2010 32bit
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
  #3  
Old 08-12-2015, 10:38 PM
macropod's Avatar
macropod macropod is offline Macro for mark index entry for every word in a document? Windows 7 64bit Macro for mark index entry for every word in a document? Office 2010 32bit
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 Guessed View Post
The basic workflow I would follow would be to:
Or you could run the macro in this thread: https://www.msofficeforums.com/word/...sage-same.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 08-13-2015, 01:42 AM
Jay Jay Jay Jay is offline Macro for mark index entry for every word in a document? Windows 7 64bit Macro for mark index entry for every word in a document? Office 2013
Novice
Macro for mark index entry for every word in a document?
 
Join Date: Aug 2015
Posts: 7
Jay Jay is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
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.
snip...
Thanks for your reply.
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
Reply With Quote
  #5  
Old 08-13-2015, 03:23 PM
macropod's Avatar
macropod macropod is offline Macro for mark index entry for every word in a document? Windows 7 64bit Macro for mark index entry for every word in a document? Office 2010 32bit
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

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]
Reply With Quote
  #6  
Old 08-13-2015, 03:44 PM
Guessed's Avatar
Guessed Guessed is offline Macro for mark index entry for every word in a document? Windows 7 32bit Macro for mark index entry for every word in a document? Office 2010 32bit
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
Reply

Tags
macro



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro for mark index entry for every word in a document? How do I create an index of every word in a document? jbengal Word 5 11-23-2022 02:17 PM
Macro for mark index entry for every word in a document? 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

Other Forums: Access Forums

All times are GMT -7. The time now is 11:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft