What occurs is the filtered table becomes unfiltered and all unique values from Column E are copied to Column X. Far more than needed.
Sub FilterCopy Dim wsData As Worksheet, wsLane As Worksheet Dim DataLR As Long Set wsLane = Worksheets("LANES") Set wsData = Worksheets("FMData") DataLR = wsData.Range("A" & Rows.Count).End(xlUp).Row wsData.Range("X2:X" & DataLR).ClearContents 'AutoFilter...Result = Filtered Visible Rows wsData.Range("A2:H" & DataLR).AutoFilter Field:=2, Criteria1:="=*" & wsLane.[E9] & "*" 'Copy/Paste Unique Values wsData.Range("E2:E" & DataLR).AdvancedFilter Action:=xlFilterCopy, CopyToRange:=wsData.Range("X2"), Unique:=True End Sub
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE