Having trouble getting a cell to accept a formula. I looked at the Microsoft Help example on formulas and tried to follow it, but i'm still having trouble.
Excel 2003
Run-time error '1004'
Application-defined or object-defined error
I have also tried
but they do not work either
-JTBorton
Well, You can try banging your head against the wall, but you just end up with lost-time injuries and damaged equipment. [M. Passman]
Excel 2003
Run-time error '1004'
Application-defined or object-defined error
Code:
With wksStabilizers
For F = 13 To intLastCol
Ltr = GetColumnLetter(F)
strFormula = Ltr & "10"
For G = 11 To intLastRow Step 3
strFormula = strFormula & "," & Ltr & G
Next G
Col = Ltr & "5"
[highlight].Range(Col).Formula = "= SUM(" & strFormula & ")"[/highlight]
Next F
End With
I have also tried
Code:
.Columns(Col).Formula = "= SUM(" & strFormula & ")"
.Cells(5, F).Formula = "= SUM(" & strFormula & ")"
wksStabilizers.Range(Col).Formula = "= SUM(" & strFormula & ")"
wksStabilizers.Columns(Col).Formula = "= SUM(" & strFormula & ")"
but they do not work either
-JTBorton
Well, You can try banging your head against the wall, but you just end up with lost-time injuries and damaged equipment. [M. Passman]