+ Reply to Thread
Results 1 to 2 of 2

Looping a Solver

  1. #1
    Registered User
    Join Date
    04-30-2006
    Posts
    55

    Looping a Solver

    Hi all,

    I am trying to create an optimization macro and have created the following code:

    Please Login or Register  to view this content.
    As you can see, it's two parts of identical code, with only three cells changing. In total, I need to create 15 of such codes. I have understood that there is something as creating loops. Can these loops be created for a solver, and if so, how would it look like applied to my code? Thanks in advance,

    Kind regards,

    Peter

  2. #2
    Forum Contributor colofnature's Avatar
    Join Date
    05-11-2006
    Location
    -
    MS-Off Ver
    -
    Posts
    301
    Like this:
    Please Login or Register  to view this content.
    Thus, the For...Next loop repeats with the variable i given the values 13, 14,... 27, and the ranges which change (M9, M12 and M22) are referred to using Cells(<row>, <column>).


    Col
    If you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime.

+ 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