Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox question 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
This might be a stupid question.. I am having a black-out.

But I have a Listbox with eg. 2 items : 1 and 2

How do i put the value of one of these items in a variable?

Thanx in advance!

 
To display the current selected item from the listbox, use the following code:

Msgbox List1.List(List1.ListIndex)

Have fun!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top