标题:求大神给我注解下这段排序的意思
只看楼主
yjk1314920
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2019-4-23
结帖率:0
 问题点数:0 回复次数:0 
求大神给我注解下这段排序的意思
Range("C2:Z42").Select
    ActiveWindow.SmallScroll Down:=-39
    ActiveWindow.ScrollColumn = 10
    ActiveWindow.ScrollColumn = 9
    ActiveWindow.ScrollColumn = 8
    ActiveWindow.ScrollColumn = 6
    ActiveWindow.ScrollColumn = 5
    ActiveWindow.ScrollColumn = 4
    ActiveWindow.ScrollColumn = 2
    ActiveWindow.ScrollColumn = 1
    ActiveWorkbook.Worksheets("Sheet1").Sort.SortFields.Clear
    ActiveWorkbook.Worksheets("Sheet1").Sort.SortFields.Add Key:=Range("C2"), _
        SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:=xlSortNormal
    With ActiveWorkbook.Worksheets("Sheet1").Sort
        .SetRange Range("C2:Z42")
        .Header = xlNo
        .MatchCase = False
        .Orientation = xlTopToBottom
        .SortMethod = xlPinYin
        .Apply



[此贴子已经被作者于2019-7-24 11:14编辑过]

搜索更多相关主题的帖子: 排序 Sort Header False Apply 
2019-07-24 11:13



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-496010-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.153399 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved