Here is one I did which looks at all columns and filters by the one where the value is found. Adapt to your needs or send file to dguillett1 @
gmail.com
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
'macro by Don Guillett SalesAid Software
dguil...@gmail.com
Dim mf As Range 'String
If Target.Address <> Range("a2").Address Then Exit Sub
If ActiveSheet.FilterMode = True Then ActiveSheet.ShowAllData
Set mf = Range("a4").CurrentRegion.Find(What:=Target, LookIn:=xlValues, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False)
If Not mf Is Nothing Then
'MsgBox mf.Row & " " & mf.Column
Range("a4").CurrentRegion.AutoFilter Field:=mf.Column, Criteria1:="*" & Target & "*"
End If
Target.Select
End Sub
Sub FixIt()
Application.EnableEvents = True
End Sub