- Joined
- Sep 8, 2016
- Messages
- 12
- Reaction score
- 1
This code is fabulous but it only seems to be able to do one key word at a time. I wish I'd asked how to do multiples when I was originally helped with this years ago - but didn't need it - now I do with a deadline over-head..
Hoping someone or if still available @macropod can help me expand the capability to look for multiple key words/phrased rather than just one.
(Example: "Delivered", "Architected", "Developed", "Resolved")
Goal: extrapolate key statements from customer deliverables (status reports) over a full contract period's time -- and build a significant accomplishments list at end of contract using key several key words we're looking for)
Thanks in advance!
Chris
Sub Highlight_ParagraphEx2AndCaseSensitiveorNot()
'THIS ONE HIGHLIGHTS FULL PARAGRAPH
Application.ScreenUpdating = False
With ActiveDocument.Range
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "Delivered"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindStop
.Format = True
.MatchWildcards = False
.Execute
End With
Do While .Find.Found
.Duplicate.Paragraphs.First.Range.HighlightColorIndex = wdYellow
.Start = .Duplicate.Paragraphs.First.Range.End
.Find.Execute
Loop
End With
Application.ScreenUpdating = True
End Sub
Hoping someone or if still available @macropod can help me expand the capability to look for multiple key words/phrased rather than just one.
(Example: "Delivered", "Architected", "Developed", "Resolved")
Goal: extrapolate key statements from customer deliverables (status reports) over a full contract period's time -- and build a significant accomplishments list at end of contract using key several key words we're looking for)
Thanks in advance!
Chris
Sub Highlight_ParagraphEx2AndCaseSensitiveorNot()
'THIS ONE HIGHLIGHTS FULL PARAGRAPH
Application.ScreenUpdating = False
With ActiveDocument.Range
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "Delivered"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindStop
.Format = True
.MatchWildcards = False
.Execute
End With
Do While .Find.Found
.Duplicate.Paragraphs.First.Range.HighlightColorIndex = wdYellow
.Start = .Duplicate.Paragraphs.First.Range.End
.Find.Execute
Loop
End With
Application.ScreenUpdating = True
End Sub