+ Reply to Thread
Results 1 to 3 of 3

Excel 2007: A Macro created to run Solver returns error message

  1. #1
    Registered User
    Join Date
    03-22-2014
    Location
    San Jose, California
    MS-Off Ver
    Excel 2007
    Posts
    2

    Excel 2007: A Macro created to run Solver returns error message

    Hello,

    I've set up a Solver in an excel sheet, and I'm trying to create a macro that will initiate the Solver when the user clicks a textbox in the Excel sheet.

    I recorded the macro and assigned it to the textbook. It runs splendidly on Excel 2010, but when I try to run it on Excel 2007, I receive the error message: "Solver: An unexpected internal error occurred, or available memory was exhausted." Unfortunately we only have Excel 2007 at the office, so I have to be able to make this work on Excel 2007.

    I'm new to using VB, but I've checked the references and SOLVER is already checked. The Solver also works when I run it manually outside of the macro.

    My current macro code is shown below. (FYI, code includes selecting the "'Set-up (DO NOT ALTER)" sheet where the data is located and then returning user to original "K calculator" sheet.)

    Please Login or Register  to view this content.

    How do I fix this? I'd truly appreciate the assistance!

  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: Excel 2007: A Macro created to run Solver returns error message

    You're missing the SetCell argument in the SolverOK statement.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-22-2014
    Location
    San Jose, California
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Excel 2007: A Macro created to run Solver returns error message

    Thank you, shg. I added it and it now works! You've saved me from a big headache. Thanks again!

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro Cell Error At Cell message when running Solver in VBA
    By Eharr3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2013, 03:36 PM
  2. VBA code created in Excel 2003, not working in Excel 2010, Getting error message 400.
    By rajeshapril14 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-24-2012, 05:19 AM
  3. Can't start Solver. Error message says Solver.xlam already open.
    By DaveHills in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 10-21-2012, 11:02 AM
  4. [SOLVED] Macro/Solver error message question
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2006, 02:25 PM
  5. [SOLVED] Error message when using the Solver in a VBA macro loop
    By Mathieu Fournier in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2005, 11:06 AM

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