Panthers0027
Board Regular
- Joined
- Apr 13, 2009
- Messages
- 89
Hello,
I use Office 2007.
I have a table, that I'd like to filter in my code. I'm trying to filter out certain names. Using the Macro Recorder I get this:
The table has many more names, I just shortened it for this question. I'd like to know how I can simply filter out certain names. i.e. I want to take out "Sponsor" & "Sponsor Dept" as the names.
How can I do this?
Thanks for any help that you can provide!
Andre
I use Office 2007.
I have a table, that I'd like to filter in my code. I'm trying to filter out certain names. Using the Macro Recorder I get this:
Code:
ActiveSheet.ListObjects("Table5").Range.AutoFilter Field:=3, Criteria1:= _
Array("Name1", "Name2", "Name3"), Operator:=xlFilterValues
The table has many more names, I just shortened it for this question. I'd like to know how I can simply filter out certain names. i.e. I want to take out "Sponsor" & "Sponsor Dept" as the names.
How can I do this?
Thanks for any help that you can provide!
Andre