So I have 4 columns and thousands of rows. I want to look for one word that appears either in column 3 OR 4 and get rid of the rest. So filtering doesn't appear to work as I apply the filter in one column and this hides any row where the word doesn't exist, but it may exist in the next column.
I have tried:
lr = Cells(Rows.Count, 1).End(xlUp).Row
With ActiveSheet.Range("$A$1:$D$" & lr)
AutoFilter Field:=3, Criterial:="Test1" or AutoFilter Field:=4, Criterial:="Test1"
End With
So I suspect it will need something more clever.
Filter Data Using
AdvancedFilter
Formula in
Sheet2!E2
Before
After
VBA