The following code works fine, only I would like to insert a line of code to change the text to Upper case and another line to change the size of the font.
Any help would be much appreciated:
Dim i As Integer
Text(1) = "text1"
Text(2) = "text2"
Text(3) = "text3"
For i = LBound(Text) To UBound(Text)
For Each rCell In Range("A2:m100")
sToFind = Text(i)
iSeek = InStr(1, rCell.Value, sToFind)
Do While iSeek > 0
rCell.Characters(iSeek, Len(sToFind)).Font.Bold = True
rCell.Characters(iSeek, Len(sToFind)).Font.Underline = True
>
>
iSeek = InStr(iSeek + 1, rCell.Value, sToFind)
Loop
Next rCell
Next i
End Sub
Any help would be much appreciated:
Dim i As Integer
Text(1) = "text1"
Text(2) = "text2"
Text(3) = "text3"
For i = LBound(Text) To UBound(Text)
For Each rCell In Range("A2:m100")
sToFind = Text(i)
iSeek = InStr(1, rCell.Value, sToFind)
Do While iSeek > 0
rCell.Characters(iSeek, Len(sToFind)).Font.Bold = True
rCell.Characters(iSeek, Len(sToFind)).Font.Underline = True
>
>
iSeek = InStr(iSeek + 1, rCell.Value, sToFind)
Loop
Next rCell
Next i
End Sub