View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
abcd[_2_] abcd[_2_] is offline
external usenet poster
 
Posts: 52
Default Repeat series of formulas - REVISITED


Formula1 = "=SUM(RC[-3]:RC[-2])" ' HOW TO MAKE ALWAYS REFER TO COL A ??
Cells(i, colNum).FormulaR1C1 = Formula1



R[1]C[0] means the next row (relative) in the same column

but there's also an absolute wsay with RC style: R1C1 means the cell in
column 1 and row 1 (A1 cell)

So R[2]C1 means the column 1 (absolute) but 2 rows below (relative)
the [] means relative
without it means absolute