Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-27-2018, 05:43 AM
Usora Usora is offline How to find (highlight) two and more words in a list of 75k single words in Word 2010 Windows 10 How to find (highlight) two and more words in a list of 75k single words in Word 2010 Office 2010 64bit
Novice
How to find (highlight) two and more words in a list of 75k single words in Word 2010
 
Join Date: May 2018
Posts: 4
Usora is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 05-27-2018, 03:15 PM
Guessed's Avatar
Guessed Guessed is offline How to find (highlight) two and more words in a list of 75k single words in Word 2010 Windows 10 How to find (highlight) two and more words in a list of 75k single words in Word 2010 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
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

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
Reply With Quote
  #3  
Old 05-28-2018, 07:09 AM
Usora Usora is offline How to find (highlight) two and more words in a list of 75k single words in Word 2010 Windows 10 How to find (highlight) two and more words in a list of 75k single words in Word 2010 Office 2010 64bit
Novice
How to find (highlight) two and more words in a list of 75k single words in Word 2010
 
Join Date: May 2018
Posts: 4
Usora is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 05-28-2018, 04:08 PM
macropod's Avatar
macropod macropod is offline How to find (highlight) two and more words in a list of 75k single words in Word 2010 Windows 7 64bit How to find (highlight) two and more words in a list of 75k single words in Word 2010 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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

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]
Reply With Quote
  #5  
Old 05-28-2018, 07:31 PM
Guessed's Avatar
Guessed Guessed is offline How to find (highlight) two and more words in a list of 75k single words in Word 2010 Windows 10 How to find (highlight) two and more words in a list of 75k single words in Word 2010 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
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

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
Reply With Quote
  #6  
Old 05-29-2018, 02:22 AM
Usora Usora is offline How to find (highlight) two and more words in a list of 75k single words in Word 2010 Windows 10 How to find (highlight) two and more words in a list of 75k single words in Word 2010 Office 2010 64bit
Novice
How to find (highlight) two and more words in a list of 75k single words in Word 2010
 
Join Date: May 2018
Posts: 4
Usora is on a distinguished road
Default

Paul, i appreciate the your response. However, i find that it's easy to just do it manually. Thank you for the sensible reply.
Reply With Quote
  #7  
Old 05-29-2018, 02:27 AM
Usora Usora is offline How to find (highlight) two and more words in a list of 75k single words in Word 2010 Windows 10 How to find (highlight) two and more words in a list of 75k single words in Word 2010 Office 2010 64bit
Novice
How to find (highlight) two and more words in a list of 75k single words in Word 2010
 
Join Date: May 2018
Posts: 4
Usora is on a distinguished road
Default

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.
Reply With Quote
  #8  
Old 05-29-2018, 03:28 AM
macropod's Avatar
macropod macropod is offline How to find (highlight) two and more words in a list of 75k single words in Word 2010 Windows 7 64bit How to find (highlight) two and more words in a list of 75k single words in Word 2010 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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 Usora View Post
Since running a macro is above my abilities
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]
Reply With Quote
  #9  
Old 05-29-2018, 03:34 AM
macropod's Avatar
macropod macropod is offline How to find (highlight) two and more words in a list of 75k single words in Word 2010 Windows 7 64bit How to find (highlight) two and more words in a list of 75k single words in Word 2010 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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 Usora View Post
Paul, i appreciate the your response. However, i find that it's easy to just do it manually.
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]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find (highlight) two and more words in a list of 75k single words in Word 2010 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
How to find (highlight) two and more words in a list of 75k single words in Word 2010 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
How to find (highlight) two and more words in a list of 75k single words in Word 2010 Find and highlight all words ending in -ly RBLampert Word VBA 13 10-23-2012 04:45 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:13 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