问题
I had a problem with creating dynamic named ranges and incorporating that with data validation. On my previous question this was the (part of) the answer given by XOR LX: offset, named range and data validation
The combination of dynamically-defined Names and
INDIRECT
is not permitted within Data Validation. In such cases you need to employEVALUATE
, though you should note that, despite no explicit VBA being called, this will nevertheless require that the workbook be saved as macro-enabled.
Question remains why data validation can't handle this?
In my case I decided to hard code all possible options, as they were limited in number, but are there other options without making use of VBA?
来源:https://stackoverflow.com/questions/42954283/why-data-validation-cant-handle-dynamic-named-ranges-through-indirect