I want to use repeat solver for 51 times and store the result from each computation of solver in a separate cell in Excel. Here is my VBA script below; however, I run into a problem with the script. The stored result only shows the 51st, the last computation result. It is a simple script but I could figure out where I did wrong. Thank you for the help!
Private Sub Button1_Click()
Dim j As Integer
For j = 1 To 51
Range("m4") = j
solversolve UserFinish:=True
solversolve(UserFinish:=True) = Range("Q" & j + 3)
Next j
End Sub