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

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