“=R[-115]C”在 VBA for Excel 2011 on Mac 中是什么意思?

What does "=R[-115]C" mean in VBA for Excel 2011 on Mac?

=R[-115]C" 在 VBA for Excel 2011 on Mac 下面的代码中是什么意思?

Range("F171").Select    'to select a cell
ActiveCell.FormulaR1C1 = "=R[-115]C"

这是公式所在单元格的偏移量。您发布的示例...

"=R[-115]C"

...将在同一列中偏移 -115 行,因此相当于 =F56.

您可以对列执行相同的操作。这...

Range("A1").Select
ActiveCell.FormulaR1C1 = "=RC[1]"

...会给你公式 =B1.