+ Reply to Thread
Results 1 to 2 of 2

Solver & VBA

  1. #1
    Registered User
    Join Date
    12-01-2007
    Posts
    42

    Solver & VBA

    Hello everyone,

    Is it possible to use the "Solver" by means of a macro?

    The "Solver" works perfectly well when you activate it from the sheet. However, when we want to start it using a macro, it never works! ...
    Curiously when recording a macro by using the "Solver", it not written in English but in Spanish (my version of Excel 2007 is in Spanish). I was just trying to rewrite VBA language (ie English) that had recorded the macro, it still does not work ...

    Thank you in advance for any comments.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Solver & VBA

    To use Solver in VBA, you need to set a reference:

    In the VBE, Tools > References, browse to C:\Program Files\Microsoft Office\OFFICExx\Library\SOLVER, change the file type dropdown to *.xls, *.xla, and pick SOLVER.XLA
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1