+ Reply to Thread
Results 1 to 3 of 3

VBA: Using Range.GoalSeek to automate multiple goal seeks in a single worksheet

  1. #1
    Registered User
    Join Date
    05-29-2019
    Location
    Singapore, Singapore
    MS-Off Ver
    2016
    Posts
    2

    VBA: Using Range.GoalSeek to automate multiple goal seeks in a single worksheet

    Hi everyone! New here, and also a newbie to VBA on excel.
    I'm looking to automate some goal seeks for my workbook
    As the data I'm dealing with is sensitive, I have created an example to illustrative my problem:

    Screenshot_6.png

    I'm looking for a VBA that makes it possible for me to enter my goal value for row 7 AND row 14 on row 8 AND row 15 (highlighted yellow) respectively(e.g: if I enter 0 on D8, D7 will turn to 0 by changing D4).

    The following code allows me to automate just one cell but I have no clue on how to expand it to accommodate all the other cells:

    Please Login or Register  to view this content.
    I'm not sure if this is even possible but any help will be appreciated!
    Last edited by darylxwf; 05-29-2019 at 09:14 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider (Windows 10)
    Posts
    50,600

    Re: VBA for multiple automatic goal seek in a single worksheet

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    05-29-2019
    Location
    Singapore, Singapore
    MS-Off Ver
    2016
    Posts
    2

    Re: VBA for multiple automatic goal seek in a single worksheet

    Hello, thank you so much! Sorry for not knowing about the rules. Edited the title!

+ 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. Automatic Goal Seek
    By jakegordon97 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2018, 10:22 AM
  2. Automatic Goal seek
    By Storemannen in forum Excel General
    Replies: 6
    Last Post: 01-09-2017, 11:39 AM
  3. Automatic Goal seek
    By Storemannen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2017, 07:28 AM
  4. Excel VBA Multiple Automatic Goal Seek Required Please Assist us
    By champaben in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2014, 04:22 PM
  5. [SOLVED] Automatic Goal Seek
    By Talazem in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-04-2013, 11:28 AM
  6. Faster calculation for multiple automatic goal seek
    By lockd in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-26-2013, 09:30 AM
  7. Automatic Goal Seek VBA won't work now
    By Brodie05 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2013, 08:43 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