为什么 Excel VBA 只接受此数组公式中的相对 R1C1 引用?

Why is Excel VBA only accepting a relative R1C1 reference in this array formula?

我正在尝试将这行代码添加到我的 VBA。它将数组公式添加到单元格区域:

str_Formula = "=INDEX(rng_List,MATCH(1,--(RC1>=rng_A)*--(RC1<=rng_B),0))"
rng_Formula.FormulaArray = str_Formula

出于某种原因,该公式仅在我使用相对 R1C1 参考 (RC[-22]) 时计算。如果我使用上面的绝对形式,那么它会尝试使用单元格 RC1 的值(在 A1 参考符号中)。

有什么方法可以强制 VBA 将 RC1 读取为 R1C1 参考?

不,我无法强制 VBA 将 RC1 读取为 R1C1 参考。

来自上面的 Scott Craner:

"Because there is a column RC you cannot do an absolute column and relative row without the [] after the R. You can do an absolute row and relative column R1C and it will work, but it will first try A1 and if that works it will use it, otherwise it will try R1C1."