SUBNM & Validation Lists in XL2003
Posted: Tue Nov 03, 2009 4:29 pm
This is a minor annoyance to a few of our users but I can see it causing all sorts of issues when people don’t notice it. I’d like to avoid the issue in the first place but so far I’ve not had much luck.
We have a graph pack that shows data from various cubes, part of which is selectable by the user. 2 panels of options are at the top of the file, one with SUBNM formulae to things like site, scenario, and department so the user can pick the area of interest. The other is a bunch of validation lists so the user can choose what bits of the graph to show (demanded heads, actual heads, planned heads, scenario etc).
All but one of the data ranges for the validation lists are static, the one that changes is the scenario and it’s this which is causing the issue. A user gets to select 2 scenarios from 2 different cells with SUBNM in them. This is picked up by the range for the validation list by a simple =A3 type formula. If the sheet is recalculated the range updates fine but the value in the validation list does not. The user must reselect the scenario they wish plot otherwise the data does not refresh correctly.
Example (before a change to the selection);
Selected in the SUBNM cells
Option A – Scenario Alpha
Option B – Scenario Beta
Validation range
Option 1 – Scenario Alpha
Option 2 – Scenario Beta
Option 3 - Both
Validation data
Option 1 – Scenario Alpha
Option 2 – Scenario Beta
Option 3 - Both
Example (after a change to the selection);
Selected in the SUBNM cells
Option A – Scenario Alpha
Option B – Scenario Charlie
Validation range
Option 1 – Scenario Alpha
Option 2 – Scenario Charlie
Option 3 - Both
Validation data
Option 1 – Scenario Alpha
Option 2 – Scenario Beta
Option 3 - Both
I am trying to find a way to force the option picked in the validation data to update when the user selects something different from the SUBNM cells. In effect showing the value from option 1 or 2 rather than remembering the previously selected value.
I did find some VBA code that dealt with the issue but only when the validation range was changed manually. In my case it’s only altered by F9 so the trigger events didn’t work. If anyone has any ideas they would be most welcome, thanks.
We have a graph pack that shows data from various cubes, part of which is selectable by the user. 2 panels of options are at the top of the file, one with SUBNM formulae to things like site, scenario, and department so the user can pick the area of interest. The other is a bunch of validation lists so the user can choose what bits of the graph to show (demanded heads, actual heads, planned heads, scenario etc).
All but one of the data ranges for the validation lists are static, the one that changes is the scenario and it’s this which is causing the issue. A user gets to select 2 scenarios from 2 different cells with SUBNM in them. This is picked up by the range for the validation list by a simple =A3 type formula. If the sheet is recalculated the range updates fine but the value in the validation list does not. The user must reselect the scenario they wish plot otherwise the data does not refresh correctly.
Example (before a change to the selection);
Selected in the SUBNM cells
Option A – Scenario Alpha
Option B – Scenario Beta
Validation range
Option 1 – Scenario Alpha
Option 2 – Scenario Beta
Option 3 - Both
Validation data
Option 1 – Scenario Alpha
Option 2 – Scenario Beta
Option 3 - Both
Example (after a change to the selection);
Selected in the SUBNM cells
Option A – Scenario Alpha
Option B – Scenario Charlie
Validation range
Option 1 – Scenario Alpha
Option 2 – Scenario Charlie
Option 3 - Both
Validation data
Option 1 – Scenario Alpha
Option 2 – Scenario Beta
Option 3 - Both
I am trying to find a way to force the option picked in the validation data to update when the user selects something different from the SUBNM cells. In effect showing the value from option 1 or 2 rather than remembering the previously selected value.
I did find some VBA code that dealt with the issue but only when the validation range was changed manually. In my case it’s only altered by F9 so the trigger events didn’t work. If anyone has any ideas they would be most welcome, thanks.