Private Sub CommandButton1_Click()
Range("C10").Select
For Range("C10").Value = 0 To 35
Range("C10").Value = Range("C10").Value + 1
Next
End Sub
I have written the above code for a cell to loop through the values = 0 to 35 . I am doing this because there are other formulas whose values change according to the value of Range("C10").
The code does not work