Villalobos
Active Member
Hello,
Previuosly the number format of column Material (sheet Data) was text, some minutes ago I could changed the format to number and now I can not extract the data (to sheet Report), please, could somebody explain me what is the reason of this?
Module1:
Module2
Previuosly the number format of column Material (sheet Data) was text, some minutes ago I could changed the format to number and now I can not extract the data (to sheet Report), please, could somebody explain me what is the reason of this?
Module1:
Code:
Option Explicit
Sub Data_extraction()
Dim LstRw As Long, rng As Range, List As Object
Sheets("Report").Select
Range("B15").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Clear
Range("B15").CurrentRegion.ClearContents
Sheets("Data").Range("Table1[#All]").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:= _
Sheets("Data").Range("P12:W13"), CopyToRange:=Sheets("Report").Range("B15"), Unique:=True
Range("B15").Select
End Sub
Module2
Code:
Option Explicit
Sub AdvFil()
[B15].CurrentRegion.ClearContents
Sheets("Data").Range("Table1[#All]").AdvancedFilter 2, Range("Conditions"), [B15]
End Sub