+ Reply to Thread
Results 1 to 6 of 6

Solver-Compile error

  1. #1
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Solver-Compile error

    Hello,

    I'm having an issue running the solver add-in for excel. I spent about 3 hours on the phone with Microsoft for them to ultimately tell me that they have no idea what to do. Therefore, I thought there's no one better to ask than the geniuses on this site!

    The specific error I am getting after trying to run solver is "Microsoft Visual Basic for Applications" in title of error box. In the main portion of the box it reads: "Compile error in hidden module: SolverCode. This error commonly occurs when code is incompatible with version, platform, or architecture of this application".

    It doesn't even work in a completely blank worksheet so the data has no effect what so ever.

    I'm trying to access the code for solver within VBA but it is asking for a password to access it, If that is even the correct way to go about this.

    Any help would be greatly appreciated.

    Thanks as always,
    Mike

  2. #2
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Re: Solver-Compile error

    Nobody knows...?

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,810

    Re: Solver-Compile error

    I don't think there is enough information for us to suggest anything. Can you post the relevant code, perhaps even upload that blank worksheet that you tried the code in would give us a simple idea of what you are trying to do.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Re: Solver-Compile error

    I can't get into the code, There's a password like I mentioned. What's the point of posting a blank document, its blank.

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,810

    Re: Solver-Compile error

    I cannot recreate the problem here. Excel/VBA seem to access Solver just fine. Posting your code, even in a blank document, would allow us to see how you are trying to access Solver through VBA, be able to test those statements, and suggest alternatives.

    I might suggest a tutorial like this, http://peltiertech.com/Excel/SolverVBA.html that describes the basics of accessing Solver through VBA. Does that help?

    Is it possible that your Solver add-in has been corrupted? Perhaps try unistalling/reinstalling Solver.

    Beyond those basic things, I'm not sure what to suggest without more specific information.

  6. #6
    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-Compile error

    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)

Similar Threads

  1. Compile error : Sub or Function not defined - even after solver has been referenced
    By tiennoulap in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2014, 01:21 PM
  2. [SOLVED] Compile Error in Hidden Module and Compile Error: Can't find project or library
    By Taislin in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-10-2013, 07:03 PM
  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] Solver... compile error
    By Cicada in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-26-2012, 12:29 PM
  5. VBA and solver addin Compile Error
    By Cookstein2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-03-2011, 08:35 AM
  6. Solver Compile Error
    By AccountantCost in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-03-2009, 02:25 PM
  7. VBAProject name compile error, not defined at compile time
    By Matthew Dodds in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2005, 03:20 PM

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