I'm trying to filter on range of names, without adding them manually, not only one name like right now, from the Pos_data to T_Data
My code:
Dim category As Range
With Worksheets("Pos_Data")
Set category = .Range("U2")
End With
With Worksheets("T_Data")
With .Range("A1:CP1503")
.AutoFilter Field:=14, Criteria1:=category, VisibleDropDown:=True
End With
End With
End Sub
Names appear in the column U of Pos_Data
Question is: how to have a filter that picks all the names from column U and then applies it in T_Data Column N