![]() |
#1
|
|||
|
|||
![]()
I regularly have to search in word documents for a list of words and highlight each occurrence of those words. The problem is the list is variable from document to document so I have to copy+paste each word from the list one at a time in the find box and then replace all with highlighting.
Is there a way to set .text for the find function to whatever word(s) have been selected in the document? The idea that I'm trying to achieve is the following workflow: 1) select word(s) 2) press shortcut key for macro 3) macro highlights every occurrence in the document of the word(s) from step 1, including my selection 4) repeat for every word in the list. Thank you for any help you might be able to provide! |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro to find text in between two characters and then format selected text? | qcom | Word | 5 | 02-19-2015 11:23 PM |
![]() |
marceepoo | Word VBA | 1 | 09-14-2012 08:20 PM |
![]() |
smonczka | Word VBA | 2 | 11-05-2011 03:18 AM |
Mac Word - replace within selected text only. | bakerbj | Word | 0 | 10-31-2011 11:47 PM |
Selected text and logo in one macro | marijke | Word VBA | 0 | 08-24-2009 07:01 AM |