ricklorion
New Member
- Joined
- Jun 8, 2009
- Messages
- 3
Hello,
I am trying to create a macro where formulas are dynamically inserted into cells. I get this error when I try to use this macro "Expected: end of statement".
I currently have:
This is what I enter manually:
J21:
J22:
J23:
J24:
Please help.
I am trying to create a macro where formulas are dynamically inserted into cells. I get this error when I try to use this macro "Expected: end of statement".
I currently have:
Code:
intFormula = r + 6
Range("J" & intFormula).Select
With Selection
.formula = "=average(J8:J" & footer ")"
End With
This is what I enter manually:
J21:
Code:
=AVERAGE(J8:J20)
Code:
=MIN(J8:J20)
Code:
=MAX(J8:J20)
Code:
=J23-J22
Please help.
