Villalobos
Active Member
Hello,
I would like to ask that tow to extract only those materials from sheet Data (the data stored in table) to sheet Extraction which are classed as 7920?
This code is extract all columns but I need only the materials (classed as 7920).
The sample file is attached to this thread.
Could somebody give me some advice?
Many thanks in advance!
I would like to ask that tow to extract only those materials from sheet Data (the data stored in table) to sheet Extraction which are classed as 7920?
This code is extract all columns but I need only the materials (classed as 7920).
Code:
Sub Extract()
Sheets("Extraction").Range("E8").CurrentRegion.Clear
Sheets("Data").Range("Táblázat1[#All]").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:= _
Sheets("Data").Range("L8:L9"), CopyToRange:=Sheets("Extraction").Range("E8"), Unique:=True
Sheets("Extraction").Activate
Sheets("Extraction").Range("E8").Select
End Sub
The sample file is attached to this thread.
Could somebody give me some advice?
Many thanks in advance!