Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-01-2011, 09:44 PM
macropod's Avatar
macropod macropod is offline Find and highlight multiple words in MS Word document Windows 7 64bit Find and highlight multiple words in MS Word document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,366
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 jovani View Post
I love that script MacroPod.
Is there a way to tweak it to highlight the different words being searched for in different colors. Doesn't matter which color.


So as to help spotting two different words on the same page?
You could do that, by inserting after:
For i = 0 To UBound(Split(StrFnd, ","))
then line:
Options.DefaultHighlightColorIndex = i Mod 16 + 1
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]

Last edited by macropod; 12-02-2011 at 04:10 AM. Reason: Added Mod function as ColorIndex only goes to 15
Reply With Quote
  #2  
Old 12-01-2011, 11:06 PM
jovani jovani is offline Find and highlight multiple words in MS Word document Windows XP Find and highlight multiple words in MS Word document Office 2007
Novice
 
Join Date: Dec 2011
Posts: 3
jovani is on a distinguished road
Default

Ok so then I would have not only arguements in the multisearch and then two more words to type in for this new line of code? How does that work?
Also this new line of code has two mentions of word1 and word2 I'm guessing the two real arguements up against the middle pipe character right?
So for instance if I wanna find two words: fight & bow.
I would type the two criteria once for the criteria above and then type the two variables again for this new line of code that you're telling me I can drop in? Right?
Reply With Quote
Reply

Tags
find, highlight, multiple keywords



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and highlight multiple words in MS Word document Lost Word Document and cant find it!!! I saved it but it ISNT there!! APAV Word 9 10-09-2017 01:17 PM
Highlight text and find next instance DrDOS Word 0 11-15-2010 04:02 PM
Lock words in a document, but allow for input within the document tlinde Word 1 02-09-2010 09:07 PM
FInd recurring words in Word 2003 NJ007 Word 4 01-25-2010 03:11 PM
find - reading highlight - highlight all / highlight doesn't stick when saved bobk544 Word 3 04-15-2009 03:31 PM

Other Forums: Access Forums

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


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