Folks, repurposing an old macro and need some help. The macro filters a range of data based upon the value searched for by the user. The search term is typed into A2. B2 contains a formula to add wildcards to the value at A2. ="*"&A2&"*" so if I am looking for "life" in the range, the criteria to search becomes *life* and the results listed would be life, proliferate, lifesavings, lifeguard, midlife, lowlife.... etc
The filter macro, which picks up the search term at B2 (named range "Criteria") is simple:
How do i keep the header row (row 4) visible and also display the filtered data set?
The filter macro, which picks up the search term at B2 (named range "Criteria") is simple:
Code:
Sub Filter()
'///filter list in place using A2 as criteria
Dim s As Worksheet
On Error Resume Next
Set s = Worksheets("Finder")
s.Activate
With ActiveSheet
.Unprotect ("word")
.ShowAllData
Range("a4").CurrentRegion.AdvancedFilter _
Action:=xlFilterInPlace, _
CriteriaRange:=Range("Criteria")
.Protect ("word")
End With
End Sub
How do i keep the header row (row 4) visible and also display the filtered data set?