data validation - on retry drop down won't take focus

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
1,975
Office Version
  1. 365
Platform
  1. Windows
when using data validation in a cell, if you enter the something that is not right (for example, you type "yep" in a cell with "YES/NO" validation instead of "Yes") you get an error message with two buttons: Retry and Cancel. How come when you hit retry, and you are taken back to your cell, you can't then just use the drop down arrow to select your answer. Doing this makes the error message pop up come back. I actually have to hit cancel to get out before I can re enter something to the cell.

here's what code I am using:
Code:
With Sheets(i).Range("S26").Validation
            .Delete
            .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
                 xlBetween, Formula1:="YES,NO"
                 .InCellDropdown = True
            .ErrorTitle = "Value error"
            .ErrorMessage = "Yes or No? Have in year savings been affected?"
        End With
        With Sheets(i)
            .Range("t26") = "-"
            .Range("S27").Value = Date
        End With
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,203,485
Messages
6,055,685
Members
444,807
Latest member
RustyExcel

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