B
bryan
I am using a userform and populating a listbox from a database.
If I have only one item, how can I auto select that item.
With combo boxes I can use:
If ComboBox1.ListCount = 0 Or ComboBox1.ListCount = 1 Then
Call CommandButton1_Click
End If
Result will be that if there is 1 item it is autoselected.
Can this be done with a list box as well?
Thanks,
Bryan
If I have only one item, how can I auto select that item.
With combo boxes I can use:
If ComboBox1.ListCount = 0 Or ComboBox1.ListCount = 1 Then
Call CommandButton1_Click
End If
Result will be that if there is 1 item it is autoselected.
Can this be done with a list box as well?
Thanks,
Bryan