Chewyhairball
Active Member
- Joined
- Nov 30, 2017
- Messages
- 312
- Office Version
- 365
- Platform
- Windows
Hi Guys
Is there a way to auto filter a table using a column header name instead of a field value
eg. Selection.AutoFilter Field:=15, Criteria1:="=*" & strUserIn & "*", Operator:=xlAnd
Instead of using 15 use the name of the header there. The table is called "table2" and the header is called "type".
thanks
Rory
Is there a way to auto filter a table using a column header name instead of a field value
eg. Selection.AutoFilter Field:=15, Criteria1:="=*" & strUserIn & "*", Operator:=xlAnd
Instead of using 15 use the name of the header there. The table is called "table2" and the header is called "type".
thanks
Rory