|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How to find (highlight) two and more words in a list of 75k single words in Word 2010
Hello. I am working with a list of 75k words (most are single) and need to identify about 9k phrases (two words and more) within the list, to highlight and have borders around each.
I am using Word 2010, 32bit. The reason why i'm still using this is because i'm running foreign language fonts that only work with this version. I'm on Windows 10 64bit OS. I do not know how to create macros or anything like that. Please help me help myself in easiest way possible using layman terminology. Thanks kindly |
#2
|
||||
|
||||
How are the words separated from each other? Is it a space or is each new word/phrase in a new paragraph?
This would be easier if you posted a short sample document that shows both individual words and phrases.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
Thanks Andrew, the list is in a language (Amharic) to which you wouldn't have the font for so you wouldn't be able to see it. But just imagine single words listed vertically (double spaced) in 4 columns. Some in the list happen to be phrases with 2-6 words separated by space. If space in their respective column is not enough horizontally for the multiple word phrase, text wraps in single space.
Does that give you adequate mental image? I seek to find/highlight all in list that are more than just a single word. |
#4
|
||||
|
||||
Without actually seeing the document, it can be difficult to provide a solution. It makes a great deal of difference whether you're using a Word table or tabs, for example, to create the columns. Can you attach a document to a post with some representative data (delete anything sensitive)? You do this via the paperclip symbol on the 'Go Advanced' tab at the bottom of this screen.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
||||
|
||||
If we assume that each list item is in its own paragraph...
If you want a border around the paragraphs then it should be done with a paragraph style. So the first step would be to create a paragraph style with a border and shading that you would like. Then you can run a macro like the following where 'Body Text' is the style you want for the multi-word paras. Code:
Sub HighlightPhrases() Dim aPar As Paragraph ActiveDocument.Range.Style = "Normal" For Each aPar In ActiveDocument.Paragraphs If aPar.Range.Words.Count > 2 Then aPar.Style = "Body Text" Next aPar End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#6
|
|||
|
|||
Paul, i appreciate the your response. However, i find that it's easy to just do it manually. Thank you for the sensible reply.
|
#7
|
|||
|
|||
Andrew, thank you soo much! Since running a macro is above my abilities, I have decided to do the work manually. I sincerely appreciate your help though.
|
#8
|
||||
|
||||
Somehow I doubt that is so. Beyond your experience maybe, but hardly likely to be beyond your abilities. For PC macro installation & usage instructions, see: http://www.gmayor.com/installing_macro.htm
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#9
|
||||
|
||||
If you were to actually provide a sample as requested, you might find what you're after could be done via Find/Replace, which would be far simpler than doing them manually one at a time...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find and highlight multiple words in MS Word document | AtaLoss | Word VBA | 37 | 09-22-2021 12:04 PM |
Find and highlight multiple words in MS Word document | qkjack | Word VBA | 7 | 02-21-2018 07:09 PM |
Highlight Words from a Word List | JSC6 | Word VBA | 1 | 09-30-2014 08:22 PM |
Find and highlight multiple words in a document | flatop | Word VBA | 3 | 04-16-2014 10:29 PM |
Find and highlight all words ending in -ly | RBLampert | Word VBA | 13 | 10-23-2012 04:45 PM |