+ Reply to Thread
Results 1 to 7 of 7

Solver: Macro to use for Mutiple Cells

  1. #1
    Registered User
    Join Date
    03-12-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    4

    Solver: Macro to use for Mutiple Cells

    Hey I wrote a macro with solver and it will only work for that particular one... I need the macro to work from G42 to G246. Can someone please help me write one...Really appreciate it.


    Please Login or Register  to view this content.
    Last edited by pike; 03-12-2011 at 08:26 PM. Reason: Add code tags

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Solver: Macro to use for Mutiple Cells

    I need the macro to work from G42 to G246.

    What would you like the macro to do ?

  3. #3
    Registered User
    Join Date
    03-12-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Solver: Macro to use for Mutiple Cells

    I want the macro to work on multiple cells, using the same solver formula but instead of just finding G41 I want to find the rest from G42 to G426., using the same relative cells( for each row). Im finding optimal price increase %.

  4. #4
    Registered User
    Join Date
    03-12-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Solver: Macro to use for Mutiple Cells

    Do I need a loop in the macro to run the solver more than once??

  5. #5
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Solver: Macro to use for Mutiple Cells

    I'm not familiar with the "solver" ... if you could tell me what you are attempting to achieve I might be able to write you a procedure to accomplish the task.

  6. #6
    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: Solver: Macro to use for Mutiple Cells

    Welcome to the forum.

    Post a workbook and explain in context?

    Also, if you search the forum, there are many examples of automating Solver to work over multiple rows.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    03-12-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Solver: Macro to use for Mutiple Cells

    Im getting a Compile Error: Expected End Sum and it is highlighting the first line Private Sub Worksheet_Activate(). How do I fix the problem

    Please Login or Register  to view this content.

+ 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