[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 284
  • Last Modified:

Autodropdwon

I have a combo which sometimes presents 1 value, in that case I want to select automatically the value... how do I do it?

this is the code that gets me to open the dropdown

Q1. Setfocus
Q1.Dropdwon
0
fitaliano
Asked:
fitaliano
  • 2
1 Solution
 
Bill RossCommented:
Hi,

Q1. Setfocus
Q1.Dropdwon
SendKeys "{Enter}"

Regards,

Bill
0
 
Bill RossCommented:
Hi,

You could also test the rowsource property of the combo box and just fill in the ComboBox with the value if the rowsource recordCount is 1.

Let me know if that's something you would like to explore.

Bill
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now