I started by programming a simple loop which identifies the cells which I want SOLVER to calculate. Let the variable VAR1="$H$9;$H$10;$H$11;$H$12;$H$13"
Then I try to execute the code:
SolverOk SetCell:="$K$1", MaxMinVal:=3, ValueOf:="0", ByChange:=VAR1
However, it does not work. If I write Bychange:=VAR1, VBA does not assume this.
Another problem. If I write:
SolverAdd CellRef:="$H$9

or
SolverAdd CellRef:="$H$9

when i open solver, it has assumed FORMULATEXT= 1 ($H$9

Can somewone help me with this