+ 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
    10,215

    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
    10,215

    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 Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    39,636

    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)

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