Sub SearchMe()
Dim rFoundCell As Range, FirstFound As String, rng As Range
Set rng = Range("H5", Range("H" & Rows.Count).End(xlUp))
Application.ScreenUpdating = False
Set rFoundCell = rng.Find(What:="UOM", _
LookIn:=xlValues, _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not rFoundCell Is Nothing Then
FirstFound = rFoundCell.Address
Do
UserForm2.Show
With rFoundCell
End With
Set rFoundCell = rng.FindNext(After:=rFoundCell)
Loop Until rFoundCell.Address = FirstFound
End If
Application.ScreenUpdating = True
End Sub
Bookmarks