Running A 'Goal Seek' on evnet for specfic cells (range)

jxb

Board Regular
Joined
Apr 19, 2007
Messages
172
Office Version
  1. 2010
Platform
  1. Windows
To all

I have written a simple macro which loops through a range of cell and executes a goal seek (so I do have to do it manually!)
Any change to the values in the cells in that range (the 'Set cell' range) is flagged to the user and he must re-run the macro (the set cell must always be =1.0)

I realised that maybe a "on event" might be better because the data would always be up-to-date
Questions are:
1. Can a "on event" macro be created so that if that the value in the "input range" changes the goal seek is automatically re-run
2. Can the "on event" deal with a range of cells? (see test case explanation below)

I have attached an xls with a "test case"
The test problem is as follows
Column A: user input -
Column B: some intermediate process based on the user input
Column C: The change cell for the goal seek
Column D: the goal seek equation (= Set Cell) (To Value =1)

Scope:
If the value in range A2:A5 change (the on event) then run the goal seek for the appropriate row

any inputs/pointers, etc would be greatly appreciated

Regards

JXB
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top