+ Reply to Thread
Results 1 to 4 of 4

Automate Solver for specific problem

  1. #1
    Registered User
    Join Date
    01-22-2023
    Location
    UK
    MS-Off Ver
    Mac vs. 16.68
    Posts
    2

    Automate Solver for specific problem

    Hello,

    I am having a problem, I want to automate solver for a specific problem,, however, I cannot understand how to use VBA and I have no programming skills.

    Screenshot 2023-01-22 at 15.40.19.png

    I want to find e1 and e2 so that eq.1 and eq.2 are equal to 0.

    e1. 1 and eq. 2 are two specific equations that depend on e1 and e2.

    I have found them manually, however, I will need it again!

    Thank you!

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Automate Solver for specific problem

    Please see the hint in a yellow banner near the top of the page.

    Solver probably can find the solution without any programming. It is just an issue of proper setting of a goal.
    If not Solver alone, then: Yes, VBA could be used to run Solver several times (also with different setups) and iteratively find the final solution.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    01-22-2023
    Location
    UK
    MS-Off Ver
    Mac vs. 16.68
    Posts
    2

    Re: Automate Solver for specific problem

    Hello,

    Thank you for your reply,

    Yes solver works however I have to repeat the process for every row, I was trying to find a solution for that.

    For example a code I could run and tell Excel to solve x rows using solver automatically.

    Do you know about any code or a way to build that code?

    Thank you for the help,

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Automate Solver for specific problem

    Sure, you can use similar commands as shown for instance here: https://www.excelforum.com/excel-pro...worksheet.html

+ 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. [SOLVED] Macro to automate Solver
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-19-2021, 02:53 AM
  2. Replies: 7
    Last Post: 12-31-2016, 12:29 PM
  3. [SOLVED] Help with VBA Code to Automate Solver Scenarios for the user
    By rv02 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-03-2015, 01:38 PM
  4. Replies: 0
    Last Post: 03-29-2015, 08:11 PM
  5. Replies: 0
    Last Post: 07-20-2014, 12:45 PM
  6. [SOLVED] How to automate Solver to minimise variance of finance portfolio
    By wishkey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-01-2013, 09:54 PM
  7. Interesting Solver problem (Solver encounters an error)
    By MrShorty in forum Excel General
    Replies: 3
    Last Post: 12-22-2005, 06:55 PM

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.6.0 RC 1