[font=Verdana][color=darkblue]Option[/color] [color=darkblue]Explicit[/color]
[color=darkblue]Sub[/color] test()
[color=darkblue]Dim[/color] FoundCell [color=darkblue]As[/color] Range
[color=darkblue]Dim[/color] LastRow [color=darkblue]As[/color] [color=darkblue]Long[/color]
LastRow = Cells(Rows.Count, "A").End(xlUp).Row
[color=darkblue]With[/color] Range("A1:A" & LastRow)
[color=darkblue]Set[/color] FoundCell = .Find(Range("D1").Value, LookIn:=xlValues, lookat:=xlWhole, MatchCase:=False)
[color=darkblue]If[/color] [color=darkblue]Not[/color] FoundCell [color=darkblue]Is[/color] [color=darkblue]Nothing[/color] [color=darkblue]Then[/color]
Range("E1").Value = Cells(FoundCell.Row, "B").Value
[color=darkblue]Exit[/color] [color=darkblue]Sub[/color]
[color=darkblue]End[/color] [color=darkblue]If[/color]
[color=darkblue]End[/color] [color=darkblue]With[/color]
MsgBox "The lookup value was not found...", vbExclamation
[color=darkblue]End[/color] [color=darkblue]Sub[/color]
[/font]