View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ardus Petus Ardus Petus is offline
external usenet poster
 
Posts: 718
Default Using Relative Reference in a Formula

If you want to reference cell B3, enter:
ActiveCell.FormulaR1C1 = "=ROUND(RC[-1]*R3C2"

R3C2 is an absolutre reference to cell $B$3

HTH
--
AP

"tedd13" a écrit dans le message de news:
...
I am having trouble using a formula. Here is the formula I am trying to
make
work: ActiveCell.FormulaR1C1 = "=ROUND(RC[-1]*Cell A1".

The "Cell A1" is the cell that I want to reference. This formula will be
used in mulitiple rows but it will always look for the value of cell A1.
The
problem is that it will not let me mix both relative and absolute
references
in the formula.

I guess that I could also assign a variable with the value of cell A1 and
use that in the formula. But I don't know how to do that either.
Does anyone know how to do this?
Thanks