Hello to all.
I can't get to execute this code without an error (1004):
What am i missing?
Many thanks for your help
I can't get to execute this code without an error (1004):
Code:
Private Sub CommandButton3_Click()
Dim j As Variant
Dim x As Variant
Dim i As Variant
x = "="
For i = 1 To Range("p1").Value
j = j + "SUM(B" & 28 + i & ")"
Next i
MsgBox (x)
j = x & j
Range("q1").Formula = j
End Sub
What am i missing?
Many thanks for your help