B
Bill Roberts
my code is activecell.formulaR1C1="=average(R[-7]C[-2]:RC[-2])"
but I want to make the "7" a variable "a"
activecell.formulaR1C1="=average(R[a]C]-2]:RC[-2])"
Is there a proper Dimension statement for "a" (integer, variant, etc.) that
will allow me to do this? If not, can anyone give me the code I should use?
TIA
but I want to make the "7" a variable "a"
activecell.formulaR1C1="=average(R[a]C]-2]:RC[-2])"
Is there a proper Dimension statement for "a" (integer, variant, etc.) that
will allow me to do this? If not, can anyone give me the code I should use?
TIA