Hello, I added the reference Solver in tools/references which cleared up one problem. Now I have another.
I cannot get the ValueOf portion of the code to reference the cell I would like to set another cell equal to... essentially it skips over it.
I've tried to name the cell, reference it outright by using ValueOf:=Range("C3") or ValueOf=Range("trgA") ... no dice, it will not reference the cell.
Any help would be greatly appreciated.
I cannot get the ValueOf portion of the code to reference the cell I would like to set another cell equal to... essentially it skips over it.
I've tried to name the cell, reference it outright by using ValueOf:=Range("C3") or ValueOf=Range("trgA") ... no dice, it will not reference the cell.
Code:
Sub Solver3()
'
'
SolverReset
SolverOk SetCell:="$E$23", MaxMinVal:=3, ValueOf:=Range("trgA"), ByChange:="$E$11:$E$16,$E$18:$E$22"
SolverSolve True
End Sub