+ Reply to Thread
Results 1 to 8 of 8

Introduction and Excel VBA Solver - 2010

  1. #1
    Registered User
    Join Date
    06-28-2016
    Location
    Southampton
    MS-Off Ver
    2010
    Posts
    8

    Introduction and Excel VBA Solver - 2010

    Evening all,

    Great to be a part of your forum! I will have a read through and see just what things I can learn, I hope as my skills improve I maybe able to help someone else!

    Im currently studying an Msc Business Analysis and Consulting and enjoying the skills im picking up, even if excel is a bit hard at times! Im dashing around squeezing my work into the evenings and weekends while being a Army Officer in the day. Good to be learning all the time though.

    I am into Golf, Mountaineering and running and swimming and come from Southampton.

    Paul

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166
    Hello chillepepper101,

    Welcome to Excelforum. Be a part of large Excel community. Enjoy Learning.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    06-28-2016
    Location
    Southampton
    MS-Off Ver
    2010
    Posts
    8

    Re: Introduction and Excel VBA Solver - 2010

    The problem I am trying to solve! Any help is much appreciated.

    I am trying to make a VBA button to run solver in Excel 2010. I have managed all the solver and am happy with this and tried using the record button simply to activate that work but unfortunatley I cant get it to work. I have tried to attach the spreadsheet here but dont think I can unfortunately.

    Is there anyone who may now how to make this run please. Its just a solver to optimise the U Stat (cell N6) by adjusting the figures in Alpha (cell Q2), Beta (Q3), and Gamma (Q4) between 0 and 1.

    Any help or advise is much appreciated. I copy the macro recorded below in case for some people its sho obvious what I have missed!

    Sub VBASolverUSTAT()
    '
    ' VBASolverUSTAT Macro
    '

    '
    SolverOk SetCell:="$N$6", MaxMinVal:=2, ValueOf:=0, ByChange:="$Q$2:$Q$4", _
    Engine:=3, EngineDesc:="Evolutionary"
    SolverSolve
    End Sub


    Best regards,

    Paul

  4. #4
    Registered User
    Join Date
    06-28-2016
    Location
    Southampton
    MS-Off Ver
    2010
    Posts
    8

    Re: Introduction and Excel VBA Solver - 2010

    Thanks Arlu! Just spotted your message after I posted my question!

  5. #5
    Registered User
    Join Date
    06-28-2016
    Location
    Southampton
    MS-Off Ver
    2010
    Posts
    8

    Re: Introduction and Excel VBA Solver - 2010

    Arlu,

    Am I right thinking you can't attach anything? Is this to protect people from viruses etc?

    Paul

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Introduction and Excel VBA Solver - 2010

    Am I right thinking you can't attach anything?
    The paperclip icon you see when you click on the "Go Advanced" button don't work. Futher down on the page you see a button marked "Manage Attachment" click on than one instead and you should be able to upload file(s).

    To run Solver using a macro you need to set a reference to tools in VBA. Select "Developers" tab, click "Visual Basic" icon. In the new windows that opends Click "Tools" -> "Referenses" and tick box marked "Solver"

    Alf
    Last edited by Alf; 06-29-2016 at 04:26 PM.

  7. #7
    Registered User
    Join Date
    06-28-2016
    Location
    Southampton
    MS-Off Ver
    2010
    Posts
    8

    Re: Introduction and Excel VBA Solver - 2010

    Thanks guys, because of the time pressure I went commercial on it and a guy has solved it. Exactly like you said. I will try and give more lead in next time as clearly 3 clicks might not have been worth $30!

    Regards

    Paul

  8. #8
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Introduction and Excel VBA Solver - 2010

    as clearly 3 clicks might not have been worth $30!
    I don't think you pay for 3 clicks, you pay for the know-how where to put them.

    Alf

+ 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. [SOLVED] Excel 2010 Looping solver macro
    By RG84 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-17-2013, 02:52 AM
  2. Excel (2010) Solver Constraints: Requiring at least one cell to equal a minimum
    By eric.gwaltney in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-10-2013, 10:39 AM
  3. Solver don't work in excel 2010
    By masben in forum Excel General
    Replies: 5
    Last Post: 02-27-2013, 11:20 AM
  4. Using Excel 2010 Solver and calculating two values
    By Imvarda in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 01-16-2013, 05:47 PM
  5. Using Solver from VBA Excel 2010
    By secret2 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-05-2012, 07:12 PM
  6. Excel 2010 Solver - Matching Value in Cell
    By simmo86 in forum Excel General
    Replies: 1
    Last Post: 04-22-2012, 02:05 PM
  7. Solver, integers & 2007 vs 2010
    By geoB in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-16-2011, 03:30 PM
  8. Replies: 1
    Last Post: 04-12-2011, 06:46 PM

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