Well, i have a table that contains the following informations:
So, I'm trying to use Autofilter and put the top values of a specific company first, I tested the two codes below:
Worksheets("Classificadas").Range("A1").AutoFilter Field:=2, Criteria1:=company, Operator:=xlTop10Items
company is a variable where I charge the name of the company that i want to filter
With this code the autofilter works but don't put the values in descending order:
What should I change in my code?