+ Reply to Thread
Results 1 to 3 of 3

Help need to fully autmate What If Analysis

  1. #1
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Help need to fully autmate What If Analysis

    Hi Everyone

    I was wondering whether you can help me to write a VBA code. I have a code that performs What If analysis (I did the record Macro to get the code). The code is below

    Please Login or Register  to view this content.
    What I need to do (if possible to) is to write the code to do the following but my VBA is not strong enough. I have attached the sample spreadsheet to illustrate what I need to do:

    When a user runs the Macro for the following to happen:
    A form to appear for the user to select the following

    Select a division (from choice of what id in the sheet as a list)
    Set the Actual Score need to reach 92% to be the same as Actual score to date (for example b17 to have the same value of B11)
    Set the target (depending on the user's choice)

    Then to perform the What IF for the Highlighted cells (yellow) by changing Row 16 and 17 depending on the division chosen.

    The example is
    User chooses Division BB and Sets target to be 92%. (B17 =0.92 by changing B16 to get to the target)
    Then the WhatIF code above should do perform the following
    a) Set B15 to be the same value as B11
    b) perform the what if Analysis above on cells B16&B17 by changing cells B16 to reach the chosen target in B17.

    The remainder of the values in each column is calculated by formulae except the grey shaded areas which I will enter manually every week.

    I hope this makes sense as to what I need to achieve and any help is appreciated
    Attached Files Attached Files

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Help need to fully autmate What If Analysis

    I don't follow?
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: Help need to fully autmate What If Analysis

    What I need is to do the following:

    The spreadsheet is already set up with the appropriate formulas, I want the user to be able to choose his or her target and division for the What IF analysis to be carried out so:

    Once the macro button (which I will put on the sheet is pressed) the user will be presented with a input form to enter their division (from a list file drop down box) and set their target.

    For example user can choose division CC and target .94 then, cell H16 should have whatever value is in H11 and the what if analysis will be performed based on Goal Seek by changing cell H16 to get to target (h17) which is 0.94.

    Hope this is a bit clearer now

    Then the what if ana;ysis will be performed (like the code attached) b

+ 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. Add in Not Fully Working!!
    By Jhon Mustofa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2015, 02:46 AM
  2. Is it possible to fully automate my workbook?
    By ebes69 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-28-2014, 06:17 PM
  3. Macro to autmate IE pages, in drodown list I couldn't select value
    By sathishdhivya in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-17-2014, 04:56 PM
  4. Replies: 1
    Last Post: 03-06-2014, 11:00 AM
  5. Data Analysis- advanced pivot functions for employee analysis
    By Dsankie in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-10-2013, 12:30 AM
  6. Does xl2011 fully support VBA?
    By skysurfer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-28-2010, 11:54 AM
  7. [SOLVED] Analysis ToolPak installed but no Data Analysis option
    By Eric Stephens in forum Excel General
    Replies: 3
    Last Post: 02-02-2005, 06:06 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