View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
zerosleep zerosleep is offline
external usenet poster
 
Posts: 1
Default variables inside a formula??


here's what I have
ActiveCell.FormulaR1C1 = "=sum(R[-176]C:R[-1]C)"

trouble is the rows are not always the same and I want to use a
variable
instead of a fix number.

ActiveCell.FormulaR1C1 = "=sum(R[variableX]C:R[variableY]C)"
variableX being the top of the column and variableY being the cell
above the
active cell. I can't seem to get it to recognize variableX and
variableY

I thought this would be simple enough, but it's driving me
nuts.


--
zerosleep
------------------------------------------------------------------------
zerosleep's Profile: http://www.excelforum.com/member.php...o&userid=17846
View this thread: http://www.excelforum.com/showthread...hreadid=517795