Jagwarman
asked on
Find Specific word and then highlight range of cells
I need to be able to find either a word or a word that starts with xx and then highlight a specific range.
I have this code but it only highlights the word. Could someone assist please. I need to be able to Highlight the row from A to R
Dim vCells As Range
Sheets("Result").Select
For Each vCells In Range("A1:A2000").Cells
If Left(vCells.Text, 2) = "Ev" Then
vCells.Interior.ColorIndex = 43
vCells.Borders.LineStyle = xlContinuous
vCells.Borders.Weight = xlThin
End If
Next vCells
many thanks
I have this code but it only highlights the word. Could someone assist please. I need to be able to Highlight the row from A to R
Dim vCells As Range
Sheets("Result").Select
For Each vCells In Range("A1:A2000").Cells
If Left(vCells.Text, 2) = "Ev" Then
vCells.Interior.ColorIndex
vCells.Borders.LineStyle = xlContinuous
vCells.Borders.Weight = xlThin
End If
Next vCells
many thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you
pls try
Open in new window
Regards