Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
Dim CriteriaValue As Variant
'What is the criteria in col A?
CriteriaValue = 5
If Cells(Target.Row, 1).Value = CriteriaValue Then
Target.Offset(1, 0).Select
End If
Private Sub Worksheet_Change(ByVal Target As Range)
Dim TargetValue As Variant
TargetValue = 5
Application.ScreenUpdating = False
With Worksheets(1).Range("a1:a500")
.EntireRow.Hidden = False
Set c = .Find(TargetValue, LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
c.EntireRow.Hidden = True
Set c = .FindNext(c)
Loop While Not c Is Nothing
End If
End With
End Sub