ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Solver in Visual Basic (https://www.excelbanter.com/excel-programming/326837-solver-visual-basic.html)

Cardiff Maths Student

Solver in Visual Basic
 
Hi!
Can anyone help me? I'm writing a programme with VB and I need to use the
solver Add-In, by recording a macro I tried using:

SolverOk SetCell:="$k+1$3", MaxMinVal:=1, ValueOf:="0", ByChange:="$k+1$4"
SolverAdd CellRef = "$k+1$4", Relation:=3, FormulaText:="0.000001"
SolverSolve

But this doesn't work. Also, the macro I obtaine contained letters as row
references so I'm not sure if the "k+1" would work?I'd be very grateful for
any suggestions!
Thanks!



All times are GMT +1. The time now is 11:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com