![]() |
|
#5
|
||||
|
||||
|
'Lines' in Word are a vague concept.
Paul's code highlights from the word to the next paragraph mark, so if the paragraph is more than one displayed 'line' more than one 'line' will be highlighted. If the 'lines' are terminated with a manual line break (Shift+Enter) or copied from this forum you may do better with Code:
.Text = "Ken:[!^13^11]{1,}"
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Macro To Identify & Highlight Words In MS Word Based Upon A List In Excel File Column
|
abhimanyu | Word VBA | 5 | 03-20-2020 01:33 PM |
| How to highlight lines containing specific words | SixStringSW | Word VBA | 4 | 06-03-2018 03:57 PM |
| Highlight row based on todays date problem | manxman79 | Excel | 6 | 11-17-2014 09:06 AM |
highlight text based on find command
|
alysolyman | Word VBA | 1 | 03-27-2013 02:46 PM |
How to highlight the row based on cell value?
|
Learner7 | Excel | 1 | 12-11-2011 02:28 AM |