absolute reference r1c1 code
Try the below
'Column and row locked
ActiveCell.FormulaR1C1 = "=round(R" & ActiveCell.Row - 1 & "C" & _
ActiveCell.Column & "*RC[7],2)"
'Row locked
ActiveCell.FormulaR1C1 = "=round(R" & ActiveCell.Row - 1 & "C*RC[7],2)"
If this post helps click Yes
---------------
Jacob Skaria
"SLP" wrote:
How do I turn this so the first cell is an absolute reference? When I delete
the [] around the -1, I get an error message. Thanks.
ActiveCell.FormulaR1C1 = "=round(R[-1]c[0]*RC[7],2)"
|