needed macro to select words within given next n words
I am using a macro on which I got help on this Forum. This macro lists in one go all (those present) words being searched and highlighting them. Will someone please help me with a macro which does this:
Say we search for words aaa,ssss,ppppp,wwwww in a word document. All may not be actually present in the document. If, say, occurrence of any one of these is encountered then the macro should go into some loop and try to find if all the remaining or some are also present in the next n words starting with that found. This n shall be a variable the user can set value like 40,90,100.
|