Forms Combo Box Listindex set to zero
Hi,
If you want your combobox to have the value from the start, insert this code
in the form modules:
Private Sub UserForm_Initialize()
ComboBox1.ListIndex = 0
End Sub
" wrote:
Hello,
I am pretty much a beginnner when it comes to VBA/macro programming in
excel. I am stuck with probably the simplest problem in excel. There
is a form based combo box with all the properties specified using
format control option. I need to find a way to make the listIndex
property of the dropdown combox always set to 0, the dropdown list
should always begin from the top of the index when clicked on.
Thanks in advance.
Vic
|