View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Paul Paul is offline
external usenet poster
 
Posts: 108
Default Easy one: absolute cell reference in VBA

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