How to write simply
Posted by amroo on June 26, 2001 7:35 AM
Bonsoir, I have this part of code where numline is the number of the row which contain "Total"
Range("F" & numline).FormulaR1C1 = "=SUM(R[-1]C:R[-" & numline - 1 & "]C)"
Range("G" & numline).FormulaR1C1 = "=SUM(R[-1]C:R[-" & numline - 1 & "]C)"
Range("H" & numline).FormulaR1C1 = "=SUM(R[-1]C:R[-" & numline - 1 & "]C)".
I try to write it as: Range("F10:H10").FormulaR1C1 etc...
Range("F & numline:H" & numline).FormulaR1C1 = "=SUM(R[-1]C:R[-" & numline - 1 & "]C)"
but it said the syntaxe (before =")is wrong. Can someone help me on this.
Thanks.
A+mroo