Hi everyone! Still very new to excel, and I require help in the advanced filtering vba function.
Basically, I need to filter out specific data from a master list of data (eg, the list of members in a group). I have done a simple coding, where the filtered data is copied into another location with a click of a button.
Sub doFilter()
Range("F5:I9").Select
Selection.Clear
Range("A1:D43").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range( _
"F1:I2"), CopyToRange:=Range("F4:I4"), Unique:=False
End Sub
Are there any ways that this process can be automated, such that the filtered list changes every time the criteria range is changed, without the need for a button?
Thanks!
Basically, I need to filter out specific data from a master list of data (eg, the list of members in a group). I have done a simple coding, where the filtered data is copied into another location with a click of a button.
Sub doFilter()
Range("F5:I9").Select
Selection.Clear
Range("A1:D43").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range( _
"F1:I2"), CopyToRange:=Range("F4:I4"), Unique:=False
End Sub
Are there any ways that this process can be automated, such that the filtered list changes every time the criteria range is changed, without the need for a button?
Thanks!