+ Reply to Thread
Results 1 to 5 of 5

Automation of Solver: Must inputs be derived from cells?

  1. #1
    Forum Contributor
    Join Date
    08-14-2008
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    103

    Automation of Solver: Must inputs be derived from cells?

    Hi

    I'm trying to automate the solver using a vb program. I have found this example which is just about spot on for my needs:

    Please Login or Register  to view this content.
    My question is do I have to refer to cells in a worksheet? Is there a way to use values from an array in vb instead?

    For the above example instead of:
    Please Login or Register  to view this content.
    Could I somehow use something like:
    Please Login or Register  to view this content.
    thanks
    Last edited by HammerTime; 01-20-2010 at 08:43 PM.

  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: Automation of Solver: Must inputs be derived from cells?

    From Help:

    SetCell Refers to a single cell on the active worksheet. Corresponds to the Set Target Cell box in the Solver Parameters dialog box.

    ByChange The cell or range of cells that will be changed so that you’ll obtain the desired result in the target cell. Corresponds to the By Changing Cells box in the Solver Parameters dialog box.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    08-14-2008
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    103

    Re: Automation of Solver: Must inputs be derived from cells?

    Also, I'm a dummy.

    Varying the cells in the array will not change the target cell. No change = no solving.
    Last edited by shg; 01-20-2010 at 08:45 PM.

  4. #4
    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: Automation of Solver: Must inputs be derived from cells?

    Language, please, Hammer. This is a triple-G rated forum.

  5. #5
    Forum Contributor
    Join Date
    08-14-2008
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    103

    Re: Automation of Solver: Must inputs be derived from cells?

    Quote Originally Posted by shg View Post
    Language, please, Hammer. This is a triple-G rated forum.
    My bad,
    I promise I won't be so diddly-doddly rude-erino again

+ 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