+ Reply to Thread
Results 1 to 4 of 4

VBA issue with Solver

  1. #1
    Registered User
    Join Date
    07-17-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Unhappy VBA issue with Solver

    Hi all,

    I am having an issue when using solver from a macro that is invoked by clicking a button.
    It looks like that my second constraint is not picked-up by solver.

    If I record the macro and do not use the SolvReset function all looks ok, then as soon as I add the SolvReset function only the first constraint that I add is picked-up.

    I am using Excel 2007 and would really much appreciate if you guys can help out!!

    Many thanks!

    Please Login or Register  to view this content.

  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: VBA issue with Solver

    Try this:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-17-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: VBA issue with Solver

    cheers shg... will give it a go & I'll let you know how I get on!
    Last edited by shg; 07-18-2010 at 10:10 AM. Reason: deleted quote

  4. #4
    Registered User
    Join Date
    07-17-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: VBA issue with Solver

    yep that worked along with a change to the SolverAdd statement which now looks like this

    Please Login or Register  to view this content.
    Last edited by shg; 07-18-2010 at 02:18 PM. Reason: deleted quote

+ 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