View Single Post
 
Old 10-09-2017, 01:13 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit 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 Abiwoop View Post
Only since I have roughly 250 company names to check for in a single word doc, I exceed the StrFnd line symbol limit and the macro skips the preceding lines (connecting with " _ " didn't work of course).

Is there a way to fix that (without having 3 separate macros)?
You could use:
Code:
StrFnd = "dog|cat|pig|horse|man|" & _
  "dogs|cats|pigs|horses|men"
or:
Code:
StrFnd = "dog|cat|pig|horse|man|"
StrFnd = StrFnd & "dogs|cats|pigs|horses|men"
Quote:
Originally Posted by Abiwoop View Post
I looked into your suggestion to have data pulled from excel sheet (https://www.msofficeforums.com/word-...d-replace.html), but since it's my very first macro, can't see how to work it into your original HiLightList macro.
The macro there would work just as well, with just the few minor mods needed to implement highlighting instead of text replacement.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote