I tried the assumeNonNeg thing after reading your other thread. It was relevant as my results are often negative, but did not seem to help.
However, when I re-recorded the macro but omitted the SolverReset function, the macro works perfectly. It was this function that seemed to be throwing the...
Here is the code. I've had a look around the web and I'm sure it's something to do with referencing solver.xlam.
Sub Solve_DewPoint()
'Solve_DewPoint Macro
Range("B4").Value = -5
SolverReset
SolverOk SetCell:="$F$22", MaxMinVal:=2, ByChange:="$B$4"
SolverSolve True
End Sub
I am very much a VBA noob. I have created a simple macro that automatically uses solver to find a solution to a problem. The macro works fine on my workstation, but when I try to use it on a computer with Excel 2010 installed, the output value always resets to 0. Any suggestions?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.