+ Reply to Thread
Results 1 to 7 of 7

Automate Goal Seek

  1. #1
    Registered User
    Join Date
    10-04-2008
    Location
    Canada
    Posts
    4

    Automate Goal Seek

    Hi guys,

    I am not an excel expert but I do play around it a little. Here is my worksheet. Basically, I would like that everytime I change a variable (in yellow), the changing cell (in blue) changes so that the target cell (in pink) stays at 2. I don't want to restart goal seek everytime, i want it to change it automatically.

    I need this before monday! Please also mention what and how you achieved this.

    thx\
    Attached Files Attached Files
    Last edited by marcghannoum@gm; 10-04-2008 at 07:22 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Name cell F5 Time

    Name cell H5 RealKTv

    Open the VBE, add a reference to Solver, and put this in the Sheet module:
    Please Login or Register  to view this content.
    The purpose of this forum is to help people learn Excel. Sending workbooks around by email defeats that; please don't solicit to do so again, and please read the Forum Rules about thread titles (and in general) before starting your next thread.
    Last edited by shg; 10-04-2008 at 05:51 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    10-04-2008
    Location
    Canada
    Posts
    4
    Hi,

    Thx a million for the help! Unfortunately, I've never used the VBE functions. Can you give me the steps one by one (sorry about that, guess i'm even worse than i expected).

    So, in excel:
    1) Go to Developper tab
    2) click Visual Basic
    3) on the open window on top left go on sheet 1

    then?

    If you could do it for me, i would sure be grateful, sorry about that!

    Marc

  4. #4
    Registered User
    Join Date
    10-04-2008
    Location
    Canada
    Posts
    4
    you can resend me the worksheet through here, no need for email.

  5. #5
    Registered User
    Join Date
    10-04-2008
    Location
    Canada
    Posts
    4
    ok i tried my best, i think i did everything you mentionned. Doesn't seem to work. Sorry

  6. #6
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    G'day Marc,

    I noticed that your using xl 2007 if this is correct try the following options.

    There two options you have to do

    Option One


    In the Visual Basic Editor, with a module active, click References on the Tools menu, and then select the Solver.xlam check box under Available References. If Solver.xlam does not appear under Available References, click Browse and open Solver.xlam in the \office12\library\Solver subfolder.

    If that did not work, try

    Option 2

    Go to the Office Button > Excel Options > Add-Ins > click on 'Solver Add-in' >

    Click 'Go' (not 'Ok') > Tick the box 'Solver Add-in' > click on 'OK'.

    Wait for the program to load the Add-In.

    Go back to the Visual Basic Editor > Tools > References > tick the box 'SOLVER' > click 'OK'

    Then

    Quote Originally Posted by martindwilson

    PFM

    Cheers
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  7. #7
    Registered User
    Join Date
    01-26-2009
    Location
    CA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Automate Goal Seek

    Hello,
    I am trying to use the VBA code you suggested above to automate goal seek. how do i call the procedure in the sheet so that excel remembers to run the goal seek every time i change the underlying value.
    Thanks

+ 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. Goal Seek using Time
    By laya1024 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-21-2008, 12:39 PM
  2. Using goal seek to make a chart
    By AKK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2007, 09:46 PM
  3. Multiple goal seek ?
    By Joenash in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-04-2007, 12:30 PM
  4. Goal Seek
    By mangesh in forum Excel General
    Replies: 0
    Last Post: 04-26-2007, 06:12 AM

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