Nelson78
Well-known Member
- Joined
- Sep 11, 2017
- Messages
- 526
- Office Version
- 2007
Hello everybody.
I'm dealing with searching a string in a range:
My deadlock is: I need to highlight, for example in yellow RGB(0, 255, 0), the cell where the string is found.
How can I perform the task?
I'm dealing with searching a string in a range:
Code:
X = "ABCDEF"
Dim foundVal As Range
Set foundVal = Worksheets(2).Range("C2:C21").Find((X), LookIn:=xlValues, lookat:=xlPart)
My deadlock is: I need to highlight, for example in yellow RGB(0, 255, 0), the cell where the string is found.
How can I perform the task?