I have a string variable Manager_Val that I would like to use in autofilter criteria
.Range("A1").AutoFilter Field:=2, Criteria1:="<>(Manager_Val)"
When I run the macro I am getting the actual name “Manager_Val”, instead of the value of the variable.
How do I refer to the variable Manager_Val for criteria1?
Thanks
.Range("A1").AutoFilter Field:=2, Criteria1:="<>(Manager_Val)"
When I run the macro I am getting the actual name “Manager_Val”, instead of the value of the variable.
How do I refer to the variable Manager_Val for criteria1?
Thanks