Listbox - set initial selection

  • Thread starter Thread starter Alan Z. Scharf
  • Start date Start date
A

Alan Z. Scharf

How can I set the initilial selection in a listbox when a form opens?

I tried setting the lisitbox.value to the first value in the boud column,
but that had no effect.

Thanks.

Alan
 
hi Alan,
How can I set the initilial selection in a listbox when a form opens?
I tried setting the lisitbox.value to the first value in the boud column,
but that had no effect.
ListBox.ItemData Number


mfG
--> stefan <--
 
Stefan,

I also want to highlisht the list item that is specified with ItemData No.

How can I do that?

Thanks again.

Alan
 
hi Alan,
I also want to highlisht the list item that is specified with ItemData No.
How can I do that?

My answer wasn't really correct.
It must be:

ListBox.Value = ListBox.ItemData(Number)

It is automatically highlighted.


mfG
--> stefan <--
 
Hi Stefan,

Thanks again.

Alan
stefan hoffmann said:
hi Alan,


My answer wasn't really correct.

It must be:

ListBox.Value = ListBox.ItemData(Number)

It is automatically highlighted.


mfG
--> stefan <--
 
Back
Top