pk6472
Civil/Environmental
- Feb 13, 2013
- 1
HI guys,
I have a excel sheet that i have to optimize an error and make the value to zero and i want to change some cells to get that goal,I have problem running the code I put the code below so anybody can help me,and i want to set it to GRGNonlinear as well,
Sub SolverMacro2()
'
' SolverMacro2 Macro
'
nn = 3651
r = o
For r = 15 To nn
SolverReset
SolverOk SetCell:="$CX$" & r", MaxMinVal:="3", ValueOf:=0, ByChange:="$CR$ & r:$CU$ & r"
SolverSolve True
Next r
End Sub
I have a excel sheet that i have to optimize an error and make the value to zero and i want to change some cells to get that goal,I have problem running the code I put the code below so anybody can help me,and i want to set it to GRGNonlinear as well,
Sub SolverMacro2()
'
' SolverMacro2 Macro
'
nn = 3651
r = o
For r = 15 To nn
SolverReset
SolverOk SetCell:="$CX$" & r", MaxMinVal:="3", ValueOf:=0, ByChange:="$CR$ & r:$CU$ & r"
SolverSolve True
Next r
End Sub