Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel VBA Dropdown

Status
Not open for further replies.

eilob

Programmer
Mar 28, 2007
54
IE
Hi all,

I need to set up the properties of a dropdown list equal to nothing, so that when I open my workbook nothing is selected. I dont want anything to show on the dropdown..
So I need to place this code on a form so will have to specify the name of the Sheet first and then the name of the dropdown like:

Sheets("Revenue").DropdownRegion.Value = ""

This doesnt work but will be something like that?

Thanks in advance

eilob
 



Hi,

What version of Excel?

I assume that the dropdown is on your Sheet and not on a UserForm, yes?

What kind of dropdown?

1. Data Validation
2. MS Forms
3. Control Toolbox



Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
For MSForms listbox:

Sheets("Revenue").DropdownRegion.ListIndex=-1

combo
 
I think you need to make an empty item.

Gerry
 
Hi, The dropdown is a control toolbox...
 
Please be clear. It always helps.

So...it is a control toolbar ComboBox. Not a "dropdown".

so that when I open my workbook nothing is selected. I dont want anything to show on the dropdown..
How have you populated it? Because, normally, you should be getting anything there. It should, in fact, be exactly as you state you want it to be. If you do not specify a ListIndex, then it should start out blank. So please describe, exactly, what you have done with this control.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top