Ed:
Sorry I was the one who was confused.
To remove Filters.
Sub Ed2()
Activesheet.autofiltermode = false
End sub
This uses a Helper cell BC1 to advance the filters. In BC1 or another cell of your preference type in 7.
Sub BigEdJr()
Dim y As Long
Dim z As Long
Dim rcell As Range
Application.ScreenUpdating = False
z = Range("BC1").Value
Columns(ActiveSheet.UsedRange.Columns.count - 1).Clear
y = ActiveSheet.UsedRange.Columns.count + 1
For Each rcell In Range(Cells(6, z), Cells(ActiveSheet.UsedRange.Rows.count, z + 3))
If rcell.Value = "x" Then Cells(rcell.Row, y).Value = "x"
Next rcell
Range(Cells(5, y), Cells(ActiveSheet.UsedRange.Rows.count, y)).AutoFilter 1, "<>x"
Range("BC1").Value = z + 3
Application.ScreenUpdating = True
End Sub
Probably better methods though.
Bookmarks