+ Reply to Thread
Results 1 to 4 of 4

Macro That Runs Goal Seek From a List and Pastes the Output

  1. #1
    Registered User
    Join Date
    05-03-2018
    Location
    Wisconsin
    MS-Off Ver
    MS Office 2000
    Posts
    2

    Macro That Runs Goal Seek From a List and Pastes the Output

    I am currently trying to create a macro that runs a Goal Seek on multiple Projects.

    I have a summary worksheet that contains a list of projects, their revenue and expense streams by year. I then have a worksheet that contains an IRR template that uses index match to pull in the revenue and any associated expenses based on the name of the project. I need to determine the break even capital investment for each project.

    In the past I have created a macro that runs the Goal Seek on multiple worksheets, with each worksheet containing the IRR template and specific to each project. However, I want to condense this so I can minimize the amount of worksheets within my workbook. I am hoping that someone can help me write a macro that does the following:

    On the "Breakeven Capital Template" worksheet, in cell B3, pull in the project name from a list on the "Inputs" worksheet, run Goal Seek, and then paste the value in G7 into the column to the right of the project name on the "Inputs" worksheet. The below code is what I get when I record the operation for 1 item in the project list. Is there a way to just loop this for each project in the list?

    Thanks in advance!
    Please Login or Register  to view this content.
    Last edited by polkadotbikini5; 05-03-2018 at 04:34 PM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Macro That Runs Goal Seek From a List and Pastes the Output

    Hi welcome to the forum
    Please use the code delimiters when entering code
    Makes it readable, aside from that I can't help you I'm no good at economics
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    05-03-2018
    Location
    Wisconsin
    MS-Off Ver
    MS Office 2000
    Posts
    2

    Re: Macro That Runs Goal Seek From a List and Pastes the Output

    Quote Originally Posted by Keebellah View Post
    Hi welcome to the forum
    Please use the code delimiters when entering code
    Makes it readable, aside from that I can't help you I'm no good at economics
    Hi Keebellah - how do I use code delimiters? I copied and pasted from the macro module.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Macro That Runs Goal Seek From a List and Pastes the Output

    If you look at the formatting bar above the space where you enter your question there are symbols
    The # is the one to select but you can also type

    [ code ]

    the macro

    [ /code ]

    no blanks in between the [ ]

    the result
    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. Goal Seek related data output macro help
    By tuxmonkey in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-12-2017, 07:06 PM
  2. Excel for Mac 2011: goal seek function produces bizarre output, what's wrong?
    By Vitale in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 05-18-2016, 01:23 AM
  3. Goal Seek Macro?
    By caj in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-29-2012, 06:19 AM
  4. Goal Seek Output Cell
    By B3nnyB in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-12-2012, 02:31 PM
  5. Excel 2007 : Tables/Goal Seek macro runs in 2007, not 2003
    By Groundwater in forum Excel General
    Replies: 0
    Last Post: 10-19-2009, 04:12 PM
  6. Goal seek output
    By Kainoa in forum Excel General
    Replies: 0
    Last Post: 05-22-2006, 04:10 PM
  7. Macro help for goal seek
    By Dean in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2005, 01:30 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