Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含一些值的表:
我需要用 vba 按从最大值到最小值的值列对这个表进行排序。我怎样才能做到这一点?
认为这是你需要的
Columns("A:E").Select Selection.Sort Key1:=Range("E2"), Order1:=xlDescending, Header:=xlGuess, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal