Why can't I sum up these cells???
Posted by Brian A on April 20, 2001 2:41 PM
I'm trying to do a simple sum of cells using a variable to know how far to count back.
Here's my code . . .
.Range("F" & SMCBegin & ":" & "F" & SMCEnd + 1).select
.Range("F" & SMCEnd + 1).Activate
ActiveCell.FormulaR1C1 = "=SUM(R[-SMCCount]C:R[-1]C"
It bombs on the ActiveCell line. I know the syntax must be slightly off or something when I use the variable SMCCount.
Thanks for any help!