View Poll Results: Is this Viable?

Voters
0. This poll is closed
  • Yes

    0 0%
  • No

    0 0%
+ Reply to Thread
Results 1 to 3 of 3

VBA Loop using solver.

  1. #1
    Registered User
    Join Date
    10-17-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question VBA Loop using solver.

    Hi All,

    I am currently trying to automate a spreadsheet which uses solver to determine the value of a cell. As with the code below I use input boxes to determine the value of the 'Set Target Cells', of the 'Cells to be changed' and of the 'Contraints'.

    I already know what columns which will be selected before hand, and I have 150 rows which I want to run the optimizing function on separately.

    TargetVal will always be in column B. ChangeVal will always be in M:V and DesiredVal will always be C:K.

    Given I have 150 rows I want to run the solver function in all of them using a loop.

    Can anyone please help/advise?

    Thanks in advance!!!


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by ec41tp; 10-17-2011 at 05:08 AM. Reason: Problem with 'Code Quotation'

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: VBA Loop using solver.

    Hello and welcome to the forum.

    Of all the buttons you could click, you found the Poll (why start a poll?), but you were not as successful with code tags. Please correct that before expecting answers.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

  3. #3
    Registered User
    Join Date
    10-17-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VBA Loop using solver.

    Hi,

    Thanks for the info, I've updated the post think it is correct now. It is my first time here and wasn't sure about the poll. Is it possible to change it to a normal forum topic or should I just leave it as it is?

    Thanks

+ 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