Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is what i came up with to solve the same problem... the (True,True) term
was not working for me.... Sub solveAlls() MsgBox "SolveAlls" Dim cellChange Dim cellGoal Dim Nmm Set cellChange = ActiveSheet.Application.InputBox("Please the 1st cell you wish to vary", , , , , , , 8) 'Following cells that want to be varied must be in teh range of Nmm... and below "cellChange" Set cellGoal = ActiveSheet.Application.InputBox("Corressponding Cell to Zero", , , , , , , 8) Set Nmm = ActiveSheet.Application.InputBox("Range", , , , , , , 8) 'If 8 rows of data need to be solved for... this would be 8 Dim j As Integer j = Nmm.Rows.Count MsgBox "j = " & j For i = 1 To j MsgBox "i=" & i SolverReset SolverOK SetCell:=cellGoal.Address, MaxMinVal:=3, ValueOf:="0", ByChange:=cellChange.Address SolverSolve userFinish:=True SolverFinish KeepFinal:=1 Set cellChange = cellChange.Offset(1, 0) Set cellGoal = cellGoal.Offset(1, 0) Next i MsgBox "done" End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I use Excel Solver (for an Iteration in a row) for several no.of times? | Excel Discussion (Misc queries) | |||
solver in macros | Excel Discussion (Misc queries) | |||
webquery and solver macros | Excel Discussion (Misc queries) | |||
Solver, macros Excel | Excel Worksheet Functions | |||
Using solver in macros - Help | Excel Programming |