I have a spreadsheet laid out like so:
A B C
12 Row1 Click to Hide
12 Row2 Click to Hide
5 Row3 Clic
This will hide the alternative rows, but hide hide the row with ActiveCell:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("C:C")) Is Nothing And Target.Value = "Click to Hide" Then
valu = Cells(Target.Row, 1).Value
For i = 1 To ActiveSheet.UsedRange.Rows.Count
If Cells(i, 1).Value = valu Then
Cells(i, 1).EntireRow.Hidden = True
Else
Cells(i, 1).EntireRow.Hidden = False
End If
Next i
Target.EntireRow.Hidden = False
Else
Rows.Hidden = False
End If
End Sub