以下代码写在SHEET1的VBE中
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error Resume Next
Dim MyFind As Variant
With Sheets("sheet2")
If Target <> "" And Target.Column = 4 Then
Set MyFind = .Range("a:a").Find(Target, lookat:=xlWhole)
If MyFind Is Nothing Then
MsgBox "无此型号"
Else
Sheets("sheet2").Select
MyFind.EntireRow.Select
End If
Set MyFind = Nothing
End If
End With
End Sub