[英]What does “=R[-115]C” mean in VBA for Excel 2011 on Mac?
What does " =R[-115]C
" mean in VBA for Excel 2011 on Mac in below code? “
=R[-115]C
”在下面代码中Mac上Excel 2011的VBA中是什么意思?
Range("F171").Select 'to select a cell
ActiveCell.FormulaR1C1 = "=R[-115]C"
It's the offset from the cell that the formula is in. The example you posted...这是公式所在单元格的偏移量。您发布的示例...
"=R[-115]C
" "=R[-115]C
”
...would be offset by -115 rows in the same column, so would be equivalent to =F56
. ...将在同一列中偏移 -115 行,因此等效于
=F56
。
You can do the same thing with the columns.您可以对列执行相同的操作。 This...
这个...
Range("A1").Select
ActiveCell.FormulaR1C1 = "=RC[1]"
...would give you the formula =B1
. ...会给你公式
=B1
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.