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
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
Bookmarks