I'm trying to build a macro that will capture information before and after a specific keyword on a clipboard.
For example, if I copy to a clipboard the following text:
The rain in Spain falls mainly on the plain. If I designate the keyword "Spain", I'd like to return the result on either the clipboard or variable, "...rain in Spain falls mainly..." So, two words before and two words after the keyword. If anyone can help me with this type of filter, I'd greatly appreciate it!
Thanks for your time,