Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 90161

How to put values ​filtered by an autofilter in descending order?

$
0
0

Well, i have a table that contains the following informations: enter image description here

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: enter image description here

What should I change in my code?


Viewing all articles
Browse latest Browse all 90161

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>