![]() |
|
#3
|
|||
|
|||
|
Hello.
Yes, I was thinking that it would be better to use an Excel file for my list. I'm very sorry. I know nothing about VBA. What should I modify on the code ? Where to put: Code:
For i = 1 To docRef.Paragraphs.Count
Set oPara = docRef.Paragraphs(1).Range
oPara.End = oPara.End - 1
strFind = oPara.Text
'do stuff with opara.text
Next i
thx you |
| Tags |
| highlight, vba, word 2016 |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Highlight words from a list
|
Nanaia | Word VBA | 3 | 09-07-2018 02:13 PM |
how to highlight all "indexed" sentences using find and replace?
|
smallxyz | Word | 2 | 02-06-2016 02:54 AM |
| Macro to highlight repeated words in word file and extract into excel file | aabri | Word VBA | 1 | 06-14-2015 07:20 AM |
| Error: The file may be corrupted, located on a server that is not responding, or read | naeemeh | Excel | 2 | 11-20-2011 03:38 AM |
| find - reading highlight - highlight all / highlight doesn't stick when saved | bobk544 | Word | 3 | 04-15-2009 03:31 PM |