Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Programatically access Excel's Solver?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Programatically access Excel's Solver?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Programatically access Excel's Solver?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Programatically access Excel's Solver?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is Excel's "solver" not always available on new worksheets? eymw Excel Discussion (Misc queries) 1 June 6th 06 12:44 PM
What is the Access equivalent of Excel's COUNTIF? RedStep Excel Discussion (Misc queries) 1 April 6th 05 09:36 PM
Getting Excel's charting capabilities from Access vince Excel Discussion (Misc queries) 1 March 26th 05 04:29 PM
how to access programatically added controls don bowyer Excel Programming 3 August 8th 04 11:28 AM
Excel's Marco Convert data to Access Paul Excel Programming 1 August 15th 03 10:06 PM


All times are GMT +1. The time now is 09:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"