+ Reply to Thread
Results 1 to 2 of 2

VBA macro to use solver on a user selected column of data

  1. #1
    Registered User
    Join Date
    07-24-2014
    Location
    Stuttgart, Germany
    MS-Off Ver
    2010
    Posts
    2

    VBA macro to use solver on a user selected column of data

    I am trying to write this macro so that I can optimize 181 outputs based on 2 inputs (columns A and B are inputs). Each row has a single output at the end of the row that I am trying to minimize. I want to be able to select as many of the rows that I want and have the code optimize each individual row. So far I can't get it to let me use variable cell references for the "ByChange:="$A$3,$B$3"." This is the hang up that is not letting me increment the macro to the next row. The macro works currently for the single selected cell, but until I can vary the ByChange portion, I can't automate it. Please let me know if you have any questions.

    Also, sorry if there are some poor programing techniques, this is pretty much my first attempt at VBA.

    Please Login or Register  to view this content.
    Last edited by jdmccoskey; 07-24-2014 at 04:36 AM. Reason: didn't read the rules :/

  2. #2
    Registered User
    Join Date
    07-24-2014
    Location
    Stuttgart, Germany
    MS-Off Ver
    2010
    Posts
    2

    Re: VBA macro to use solver on a user selected column of data

    I figured out the code change. It works now by using

    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)

Similar Threads

  1. Replies: 0
    Last Post: 07-20-2014, 12:45 PM
  2. [SOLVED] Run macro depending on what data is in column C of the selected row
    By lealea1982 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2013, 08:47 AM
  3. [SOLVED] macro to paste in a user selected range
    By TimlmiT in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2013, 11:35 AM
  4. macro to copy row selected by user
    By jimb0693 in forum Excel General
    Replies: 8
    Last Post: 04-21-2007, 10:11 PM
  5. Re: how can I sort on the column selected by the user?
    By Jim Rech in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-22-2005, 06:05 PM

Tags for this Thread

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