Hi, I want to add a null item to the top of my combobox that says "Please select from list...." How do I do that????
Printable View
Hi, I want to add a null item to the top of my combobox that says "Please select from list...." How do I do that????
You can use the .AddItem method to add the "Please select from list..." item.
I'm a total newbie.....could you give me an example?
Like:
VB Code:
ComboBox1.AddItem "Please select from the list" ComboBox1.AddItem "Item one" ComboBox1.AddItem "Item two" ComboBox1.AddItem "Item three" ComboBox1.ListIndex = 0 'Displays/Selects the first item - in this case "Please select...."
Ok, np. :)
VB Code:
Private Sub Form_Load() Combo1.AddItem "Please select from list...", 0 '0 designates first item in the list End sub
Thankyou, got it working with your help.