Sub Find_DO()
Range("B15:B40").Select
Selection.Find(What:="DO", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
End Sub
Sub Find_DO()
Dim MyRow
Range("B15:B40").Select
Selection.Find(What:="DO", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
MyRow = ActiveCell.Row
MsgBox MyRow
End Sub
Sub FindMe()
Dim strFind As String
Dim rng1 As Range
strFind = "DO"
Set rng1 = Range("b15:b40").Find(strFind, , xlValues, xlPart)
If Not rng1 Is Nothing Then
MsgBox "row is " & rng1.Row
Else
MsgBox strFind & " not found"
End If
End Sub