Data validation list doesn't trigger STOP

User avatar
StuartR
Administrator
Posts: 12618
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Data validation list doesn't trigger STOP

Post by StuartR »

I have a column with data validation set to a list.

If I hardcode the list in the validation rule then everything works as I expect.
If I use a list in another worksheet then the dropdown works correctly, but the STOP error dialog never appears if I type in something invalid.

Any suggestions or explanation?

Excel 2016
Windows 7
StuartR


User avatar
HansV
Administrator
Posts: 78566
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Data validation list doesn't trigger STOP

Post by HansV »

I can't reproduce the problem. Could you try it in a new workbook, to see what happens?
Best wishes,
Hans

User avatar
StuartR
Administrator
Posts: 12618
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Data validation list doesn't trigger STOP

Post by StuartR »

It works fine in a new workbook, there must be something wrong in this workbook. BOTHER
StuartR


User avatar
HansV
Administrator
Posts: 78566
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Data validation list doesn't trigger STOP

Post by HansV »

If you wish, you can attach a sanitized version of the problem workbook. Or send it to me.
Best wishes,
Hans

User avatar
StuartR
Administrator
Posts: 12618
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Data validation list doesn't trigger STOP

Post by StuartR »

A bit more investigation shows that this was caused by having a blank cell at the end of my validation list. I did this to make it easy to add new values to the list.
If I ensure that the named range has no blank cells then it does what I expect.
StuartR


User avatar
HansV
Administrator
Posts: 78566
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Data validation list doesn't trigger STOP

Post by HansV »

You could use a dynamic named range...
Best wishes,
Hans

User avatar
StuartR
Administrator
Posts: 12618
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Data validation list doesn't trigger STOP

Post by StuartR »

That fixed it, thank you Hans
StuartR