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.
SUBNM & Validation Lists in XL2003
- Steve Vincent
- Site Admin
- Posts: 1054
- Joined: Mon May 12, 2008 8:33 am
- OLAP Product: TM1
- Version: 10.2.2 FP1
- Excel Version: 2010
- Location: UK
SUBNM & Validation Lists in XL2003
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
-
- MVP
- Posts: 3233
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: SUBNM & Validation Lists in XL2003
Hi
In VBA, you could use the Worksheet_Calculate() event, no?
But of course, this requires to use VBA which will not work on the Web for instance.
Another event is the Worksheet_Change(ByVal Target As Range) event, based on changes in one of the 2 "SUBNM-cells".
HTH,
Wim
In VBA, you could use the Worksheet_Calculate() event, no?
But of course, this requires to use VBA which will not work on the Web for instance.
Another event is the Worksheet_Change(ByVal Target As Range) event, based on changes in one of the 2 "SUBNM-cells".
HTH,
Wim
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
- Steve Rowe
- Site Admin
- Posts: 2456
- Joined: Wed May 14, 2008 4:25 pm
- OLAP Product: TM1
- Version: TM1 v6,v7,v8,v9,v10,v11+PAW
- Excel Version: Nearly all of them
Re: SUBNM & Validation Lists in XL2003
You might want to look at writing a very simple VBA funstion that reproduces whatever is in the Excel cell that doesn't work but put Application.Volatile in the function which should force the calc. If you can't use VBA then I'm not sure...
HTH
HTH
Technical Director
www.infocat.co.uk
www.infocat.co.uk