什么是"= R [-115] C"?在Mac上的Excel 2011的VBA中意味着什么? [英] What does "=R[-115]C" mean in VBA for Excel 2011 on Mac?

查看:95
本文介绍了什么是"= R [-115] C"?在Mac上的Excel 2011的VBA中意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面的代码在Mac上的Mac版Excel 2011的VBA中是什么意思?

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

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"

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

...would be offset by -115 rows in the same column, so would be equivalent to =F56.

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

You can do the same thing with the columns. This...

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

...将为您提供公式=B1.

...would give you the formula =B1.

这篇关于什么是"= R [-115] C"?在Mac上的Excel 2011的VBA中意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆