简体   繁体   English

OrderCustom = 1是什么意思?

[英]What does OrderCustom=1 mean?

I'm looking at the code below and I can't figure out what OrderCustom=1 means. 我正在查看下面的代码,但无法弄清楚OrderCustom = 1的含义。

Selection.Sort Key1:=Range("A1"), Order1:=xlAscending _
    , Header:=xlNo, OrderCustom:=1, MatchCase:=False _
        , Orientation:=xlTopToBottom

I've asked google but weren't helped by the first page results. 我问过Google,但首页结果并没有帮助。 This is also not the first VBA detail question I have not been able to find an answer for. 这也不是我无法找到答案的第一个VBA详细问题。 So a bonus question of mine is if you know of a good reference resource where I can lookup things like this? 因此,我的一个附加问题是,如果您知道一个很好的参考资源,可以在其中查找类似的内容?

That implies there is some form of customized ordering on. 这意味着存在某种形式的定制订购。 OrderCustom changes the custom sort property. OrderCustom更改自定义排序属性。

Once the CustomOrder is set you should be able to use it as described in your code. 设置CustomOrder后,您应该可以按照代码中的说明使用它。

This might explain it better. 这可能会更好地解释它。

The VB Code from here 从VB代码这里

'Declaration
Property CustomOrder As Object
    Get
    Set
'Usage
Dim instance As SortField
Dim value As Object
value = instance.CustomOrder   
instance.CustomOrder = value

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM