hindersaliva
asked on
Excel VBA - open a DataValidation dropdown
I have a cell which gets a DataValidation list when a button is clicked. See attached.
I'd like to make the List dropdown end up opened after the DataValidation is created in the cell. I understand it requires 'Send Keys'. Can someone please show me how it's done?
Thanks
Find-matches-and-freeze-selection.xlsm
I'd like to make the List dropdown end up opened after the DataValidation is created in the cell. I understand it requires 'Send Keys'. Can someone please show me how it's done?
Thanks
Find-matches-and-freeze-selection.xlsm
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Just that script on its own works for me, I guess it must be something to do with the fact that you have disabled Worksheet_Change event.
Try adding
Try adding
DoEvents
in a line before the SendKeys
ASKER
Does this work for you?
Find-matches-and-freeze-selection.xlsm
Find-matches-and-freeze-selection.xlsm
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I think my problem was, the code was in a Module instead of the Sheet Module.
I have since decided not to use SendKeys as it is known to be unreliable.
I have since decided not to use SendKeys as it is known to be unreliable.
ASKER
Open in new window
Shouldn't that fill the InCell DataValidation list AND leave it 'Open'?