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?

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

      

+3


source to share


1 answer


This is the offset from the cell where the formula resides. The example you posted ...

"=R[-115]C

"

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

.



You can do the same with columns. It...

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

      

... will give you the formula =B1

.

+4


source







All Articles