Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a spreadsheet that uses the Excel Solver. I have a vb program that
refreshes this spreadsheet. I have a number of Solver Parameter ranges that need to be tweaked each time the data changes. Can I modify Solver Parameters via vb code? Thanks for any pointers on where to find information on this. Kevin |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Turn on the macro recorder and perform the changes manually. Turn off the
recorder and look at the code. This should give you a good indication of what you can do. Also see this article: Creating Visual Basic Macros that Use Microsoft Excel Solver http://support.microsoft.com/support...ver/SOLVER.asp -- Regards, Tom Ogilvy "Kevin R" wrote in message ... I have a spreadsheet that uses the Excel Solver. I have a vb program that refreshes this spreadsheet. I have a number of Solver Parameter ranges that need to be tweaked each time the data changes. Can I modify Solver Parameters via vb code? Thanks for any pointers on where to find information on this. Kevin |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes. You need to add a reference to Solver (in VBE... Tools/References...).
You can find help for the VB functions via a search on the MS website (try MDSN). Once you've done that, you can link specific solver operations to embedded control objects or even workbook or worksheet events. If you can't find what you need let me know and I'll dig out more detail. Regards Steve Dalton "Kevin R" wrote in message ... I have a spreadsheet that uses the Excel Solver. I have a vb program that refreshes this spreadsheet. I have a number of Solver Parameter ranges that need to be tweaked each time the data changes. Can I modify Solver Parameters via vb code? Thanks for any pointers on where to find information on this. Kevin |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you for the responses.
Kevin "Kevin R" wrote in message ... I have a spreadsheet that uses the Excel Solver. I have a vb program that refreshes this spreadsheet. I have a number of Solver Parameter ranges that need to be tweaked each time the data changes. Can I modify Solver Parameters via vb code? Thanks for any pointers on where to find information on this. Kevin |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why is Excel's "solver" not always available on new worksheets? | Excel Discussion (Misc queries) | |||
What is the Access equivalent of Excel's COUNTIF? | Excel Discussion (Misc queries) | |||
Getting Excel's charting capabilities from Access | Excel Discussion (Misc queries) | |||
how to access programatically added controls | Excel Programming | |||
Excel's Marco Convert data to Access | Excel Programming |