Nov 1, 2002 #1 Dan01 Programmer Jun 14, 2001 439 US ActiveCell.FormulaR1C1 = "=SUM(R[-3]C:R[-1]C)" Is there a way to build this where the -3 can be a variable? Thanks, Dan.
ActiveCell.FormulaR1C1 = "=SUM(R[-3]C:R[-1]C)" Is there a way to build this where the -3 can be a variable? Thanks, Dan.
Nov 1, 2002 1 #2 RobBroekhuis Technical User Oct 15, 2001 1,971 US At run-time, yes: ActiveCell.FormulaR1C1 = "=SUM(R[-" & numRows & "]C:R[-1]C)" but not after the fact. Rob Upvote 0 Downvote
At run-time, yes: ActiveCell.FormulaR1C1 = "=SUM(R[-" & numRows & "]C:R[-1]C)" but not after the fact. Rob