Help with dropdown boxes and preset selections

K

Keving

My goal is to make a macro that will bring up window A (dropdown list
selection) and has, in the window, preset selections on the dropdown
list.

So for example, a dropdown list of 5 selections numbered 1 to 5 (1
being the one at the top, 5 being the one at the bottom), could I have
the macro be created to have lets say when the window opens, option 3
in the dropdown list is selected by default?

This all takes place in the Custom AutoFilter and im trying to have "is
greater than" selection on the top box and "is less than" selection on
the bottom box.

Thanks
 
G

Gonzo

I'm assuming you use a userform.

Syntax: object.Selected( index ) [= Boolean]

For example:
lstMyCustomList.Selected(2) = True
-> using index 2 selects the third item

This what you wanted?

Keving schreef:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top