+ Reply to Thread
Results 1 to 2 of 2

Thread: macro not keeping solver solutions when solver is successful

  1. #1
    Registered User
    Join Date
    12-23-2011
    Location
    Arizona, USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    macro not keeping solver solutions when solver is successful

    I created a macro that allows me to perform 12 Solver solutions in a row.
    The formula is very reliable regarding the ease with which Solver can find a solution (no risk of errors or failure to find a solution).
    Unfortunately, the macro does not keep the Solver solutions, even though I selected "keep solver solution" when recording the macro.
    I tried adding ":select" after a "solversolve", but that created an error.

    I need the macro to Keep all the Solver Solutions, so that I don't have to press Enter for every step of the macro. (My plans are to eventually create a macro that will process well over 1000 Solver solutions at one time.)

    Is there a code command that I can insert after "solversolve" that will make Solver keep the solution and move on to the next step?
    Last edited by jimmypants; 12-23-2011 at 05:18 PM.

  2. #2
    Registered User
    Join Date
    12-23-2011
    Location
    Arizona, USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: macro not keeping solver solutions when solver is successful

    I figured it out! Woohoo!
    Finally figured out how to get "Help" to work. Apparently I also had to select that in the "References" section of the VBA Tools menu. Then I clicked on "Help" and the VBA Editor asked me if I would like to install the Help feature. So I did... And so I was able to find the answer to my question.

    Here is the solution to my problem:
    solversolve
    needs to have the "UserFinish:=True" command added after it.
    In vivo, it looks like this:
    SolverSolve UserFinish:=True
    Aw yeah, I could kiss the dudes who created Excel!
    If I were a girl...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0