solver

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Solver

Solver

resolvedResolved · Low Priority · Version 2003

Morgan has attended:
No courses

Solver

Hi
Does anyone know any code for using the solver add-in? I currently have some based on a macro I recorded, but it runs very slowly.
Thanks!

RE: Solver

Hi Morgan

Thank you for your question

First you need to switch on the solver reference. Click on tools, references and select solver.

There are a number of functions available

SolverOptions allows you to specify the basic parameters of the problem, e.g whether you are maximising or minimising

SolverAdd adds a constraint

SolverSolve seeks a solution

SolverChange changes an existing constraint

I suggest typing solver into the VB help function. There are detailed descriptions of the function arguments together with examples of their use

Regards

Stephen


RE: Solver

Thanks very much for the reply

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Brighten up your Excel 2010 Spreadsheet by changing the colours of the gridlines

Excel 2010 allows you to change the colour of grid lines instead of keeping them in boring black.

Select the File tab on the Ribbon, click Options, click Advanced, scroll down to ''Display options for this worksheet.'' Next to ''Gridline colour,'' choose your favourite colour, then once you've done this, click OK. Easy!

View all Excel hints and tips


Server loaded in 0.07 secs.