+ Reply to Thread
Results 1 to 3 of 3

Problem calling third-party application OpenSolver using VBA

  1. #1
    Forum Contributor
    Join Date
    10-10-2015
    Location
    the Dysfunctional Empire of Bulgaria
    MS-Off Ver
    2010
    Posts
    102

    Problem calling third-party application OpenSolver using VBA

    I am trying to run OpenSolver using a VBA command, but something does not seem to be working.

    As the OpenSolver website recommends I populate Solver (NOT OpenSolver) using VBA code. Next, OpenSolver “copies” the Solver inputs – i.e. the cell I am trying to maximize/minimize, edit cells, constraints, etc…

    I use OpenSolver and not Solver because my model has more than 200 variables.

    When I run OpenSolver through the ribbon menu everything works out correctly.

    Instead of using the ribbon menu I just need a snipped of code to do that actual run command through VBA.

    I follow the instruction in the link below but still nothing.

    http://opensolver.org/opensolver-api...#RunOpenSolver

    Any ideas?

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Problem calling third-party application OpenSolver using VBA

    I assume you set a reference to "OpenSolver" in Visual Basic -> Tools -> References -> OpenSolver?

    Alf

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Problem calling third-party application OpenSolver using VBA

    Thanks for rep

    As your thread now is marked "Solved" I assume that a missing reference was the problem.

    Myself I've used "OpenSolver" on several occations were the Excel Solver was not powerfull enough but so far have not used it in combination with VBA. Would it be possible for you to post your code and upload the file as I'm interested to learn more about possible uses of "OpenSolver"

    Alf

+ 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. Pasting To A Third Party Application
    By JonesZoid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2013, 03:52 AM
  2. Unstable macro when continuously calling Application.Run
    By Donitz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-24-2013, 05:29 AM
  3. 3rd party Excel Application Validation before selling
    By 55horses in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2012, 02:16 AM
  4. 3rd party Excel application validation?
    By 55horses in forum Excel General
    Replies: 1
    Last Post: 11-01-2012, 01:55 AM
  5. involve a third party application
    By hqradio in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-22-2011, 01:18 AM
  6. [SOLVED] Calling a button event from a .NEt application
    By Stanley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2006, 08:30 AM
  7. [SOLVED] Error calling Web Service from Excel Application
    By GPrabaka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2005, 11:05 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