Hi,
Thanx for your help. I think I got it correct after some adjustments. here is my new code.
Sub Solve()
Dim i As Long
' Solve Macro
' use solver function
'
'Keyboard Shortcut: Ctrl+r
With Worksheets("Flame cal")
For i = 25 To 78
SolverOk SetCell:="$P$" & i, MaxMinVal:=3, ValueOf:=0, ByChange:="$J$" & i, Engine _
:=1, EngineDesc:="GRG Nonlinear"
SolverOk SetCell:="$P$" & i, MaxMinVal:=3, ValueOf:=0, ByChange:="$J$" & i, Engine _
:=1, EngineDesc:="GRG Nonlinear"
SolverSolve
Next i
End With
End Sub
In this way I'm getting my solution but for each and every cell($P$) the solver results pop-up window appears and I have to click the "OK" for 54 times. Is there any way to avoid that.
In my solution I have removed
.Range("G" & i).Value = "260"
part because I'm entering different values(not 260 for all the cells).
Is there any method to write a code to get "the value I'm entering" instead of "260".
Thanx for the help!!
Bookmarks