Advance Filter - Multiple Conditions
XlFilterInPlace: to place in same location
XlFilterCopy: to place in some other location
Advance Filter - Example
Private Sub CommandButton1_Click()
Range("A1").CurrentRegion.AdvancedFilter _
Action:=xlFilterCopy, _
criteriarange:=Range("I1:J3"), _
copytorange:=Sheets("Sheet3").Range("A1"), _
Unique:=False
End Sub
Advance Filter - Remove Duplicates
Private Sub CommandButton1_Click()
Dim r As Range
Set r = Range("A1:A150")
r.AdvancedFilter Action:=xlFilterCopy, copytorange:=Range("D1"), unique:=True
End Sub