Easy one: absolute cell reference in VBA

P

Paul

If I want to say "value in this cell is that cell minus
the other cell", I type:

ActiveCell.FormulaR1C1 = "=RC[-1]-RC[-2]"

But, I want the first cell to be absolute, like $H$5.
Anybody know the syntax for that?

TIA

Paul
 
C

chris

try this Cells(5, 8)

----- Paul wrote: -----

If I want to say "value in this cell is that cell minus
the other cell", I type:

ActiveCell.FormulaR1C1 = "=RC[-1]-RC[-2]"

But, I want the first cell to be absolute, like $H$5.
Anybody know the syntax for that?

TIA

Paul
 
Top