owentmoore
Technical User
I need to select all rows in an excel worksheet that have a certain value.
The code below will select the last occurence of the value. I haven't been able to modify it to select all occurences and to select all the rows that contain this occurence.
Please - help!!
The code below will select the last occurence of the value. I haven't been able to modify it to select all occurences and to select all the rows that contain this occurence.
Please - help!!
Code:
Sub Select_Row()
Dim lRow As Long
lRow = Worksheets("Sheet1").Cells.Find(What:="500022116.5920.90", _
SearchDirection:=xlPrevious, _
SearchOrder:=xlByRows).Row
...select row or multiple rows....
End Sub