• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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