excel - 如何将 worksheetfunction.large 与数组一起使用?
问题描述
我需要你的帮助.. :(
我想使用 worksheetfunction.large,其中输入数组是一个存储数组。但我根本无法让它工作.. :( 我一直收到错误说明:“无法获得 WorksheetFunction 类的大属性” - 很奇怪,因为我的数组语句是错误的。在我的新 MLArray 中,我有 1800 左右行,唯一的数字(小数)在 0 和 1 之间 - 我需要知道进入前 100 名的限制是什么 - 因此 .Large 函数..
谁能给我关于如何使用数组的提示,以便我可以在代码末尾获得 MLFixpoint 值..?
最好的问候/肯尼斯
Dim arr1 As Variant
Dim NewArray As Variant
Dim MLArray As Variant
'Arr1 is from another workbook with 100000 rows
arr1 = .Range("A1:BM" & tempUsedRangeRow).Value
'Here I select only the rows in my array, that has R62 as condition - and then the other workbook is closed, but my array is preserved
NewArray = ArrayRemoveRow(arr1, "aktafd", "R62", 3, True)
'Here I state the new onedimensional array, that I believe I have to use in my worksheet formula
ReDim MLArray(UBound(NewArray, 1))
'I run through the "newArray"
For ml = 1 To UBound(NewArray)
MLArray(ml) = NewArray(ml, RykkerIndex)
Next ml
'As Excel formula
'MLfixpoint = Application.WorksheetFunction.Large("AU:AU", 100)
'My problem
'MLfixpoint = Application.WorksheetFunction.Large(MLArray(0), MLArray(allRows), DailyMLCapacity)
解决方案
推荐阅读
- python-3.x - Raspberry Pi 3 到 Azure IoT Hub 无法在 python 中连接
- java - 如何在构造函数中传递 Recycler 视图适配器?
- javascript - 需要在variablepie highchart上加边框吗?
- java - 为什么我在 Flink 中的 MapState 变量没有保留以前的值?
- java - 成员重新连接后 JGroups GMS 加入失败
- c# - 简化巨大的条件语句
- c++ - 生成编译时数组结构(c++17)
- axon - Axon 4 - JVM 重启后 Saga 再次运行
- html - 高度为 100% 的容器适合内容,未设置高度将高度设置为父级的 100%
- php - While 循环不会停止遍历数组