Perhaps,
Sub FilterCopyToOtherSheet()
'
Dim LastBRow As Double
LastBRow = Cells(Rows.Count, "B").End(xlUp).Row
Sheets("Raw Data").Range("B1:B" & LastBRow).AdvancedFilter _
Action:=xlFilterCopy, _
CriteriaRange:=Sheets("raw data").Range("B1:B2"), _
CopyToRange:=Sheets("Risk Summary").Range("D7"), _
Unique:=True
End Sub
Also, make the moderators happy and edit your post above, select your code and click on the "#" which will put "code tags" around your post and look more like mine.
Also - sometimes you need to "ClearContents" of the range you are copying your data to.
Bookmarks