View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Nuraq Nuraq is offline
external usenet poster
 
Posts: 5
Default Dynamic FormulaR1C1 value

I have the following statement:

ActiveCell.FormulaR1C1 = "=SUM(R[-4]C:R[-1]C)"

I would like to replace the -4 with a count variable that I created:

ActiveCell.FormulaR1C1 = "=SUM(R[-Count]C:R[-1]C)"

This is not working. The idea is that I want to sum Count number of cells
above my active cell.

Help please?