have the following macro for updating values using Solver
I need the macro amended as follows:
1) I need ValueOf:=72 to refer to cell F1
2) I need $E$$27 to refer to the last cell in Col D in ByChange:="$E$2:$E$27"
Your assistance in this regard is most appreciated
I have also posted on Macro to automate Solver
Code:
Option Explicit
Sub Solver()
SolverOk SetCell:="$E$1", MaxMinVal:=3, ValueOf:=72, ByChange:="$E$2:$E$27", _
Engine:=2, EngineDesc:="Simplex LP"
SolverOk SetCell:="$E$1", MaxMinVal:=3, ValueOf:=72, ByChange:="$E$2:$E$27", _
Engine:=2, EngineDesc:="Simplex LP"
SolverSolve
End Sub
I need the macro amended as follows:
1) I need ValueOf:=72 to refer to cell F1
2) I need $E$$27 to refer to the last cell in Col D in ByChange:="$E$2:$E$27"
Your assistance in this regard is most appreciated
I have also posted on Macro to automate Solver