Sub BCDE()
Dim rng As Range
Dim cell As Range
With Worksheets("SheetB")
Set rng = .Range(.Cells(1, "AD"), .Cells(Rows.Count, "AD").End(xlUp))
End With
For Each cell In Worksheets("SheetA").Range("A6:D6")
rng.AutoFilter 1, cell
' code that does something
MsgBox "cell: " & cell.Value
Next
rng.AutoFilter
End Sub
I assume there is a header in AD1. If not and you header is in AD2, then
change .Cells(1,"AD") to .Cells(2,"AD")

Signature
Regards,
Tom Ogilvy
> I need help with the Autofilter
> I have data in worksheet "SheetA" Cells A6 to D6 that has a list of names
[quoted text clipped - 26 lines]
>
> Thanks