Z
Zone
Yet more listbox woes! My listbox has two items, oak and pine. In the
userform's initialize routine, I add the items and set the listindex to 1.
When I click the userform's Ok button, it runs this code:
msgbox me.lstMater.listindex & " " & me.lstMater.value
This displays a messagebox which shows 1, but no value! What gives? The
Multiselect property is set to 0, and if I select one of the two items with
the mouse before clicking Ok, the message box shows the listindex and the
value. Thanks again, James
userform's initialize routine, I add the items and set the listindex to 1.
When I click the userform's Ok button, it runs this code:
msgbox me.lstMater.listindex & " " & me.lstMater.value
This displays a messagebox which shows 1, but no value! What gives? The
Multiselect property is set to 0, and if I select one of the two items with
the mouse before clicking Ok, the message box shows the listindex and the
value. Thanks again, James