Listbox Selection

  • Thread starter Thread starter Todd Huttenstine
  • Start date Start date
T

Todd Huttenstine

Hey guys

I have a listbox called ListBox1 and I want to make
frame20.visible = true if any item in listbox1 is selected.


How do I do this?

Thanks
Todd Huttenstine
 
Hi Todd

"How" is one side of it, "when" is another. Assuming that code or the user
selects something/nothing in the list and you want it to happen immediately:

Private Sub ListBox1_Click()
Select Case ListBox1.ListIndex
Case -1
Frame20.Visible = False
Case Else
Frame20.Visible = True
End Select
End Sub

HTH. Best wishes Harald
 
Back
Top