Hello I have an excel worksheet and want to write a macros that will look at the contents of sheet 1 and find any words in the wordbank (sheet 2) and highlight the matching words on sheet 1. Is this possible? thanks for your help!
For example, if i copy the whole article from this link into one cell in sheet 1. and the words in sheet 2 are : how, Euro, 2015, future--the macros will highlight these words on sheet 1.
Sample code is below, it works where it highlights the cell if the word is found but it doesnt highlight the word..
Sub Find_Word()
Dim FindWord As String, Found As Range
FindWord = "euro"
Set Found = Sheets("Sheet1").Cells.Find(What:=FindWord, _
LookIn:=xlValues, _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not Found Is Nothing Then
Found.Select
Else
MsgBox "No match found."
End If
End Sub