disable listitem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Which method do I have to use to disable items in a list- or combobox, so the
user can't select them, without removing them?
Thanks
 
You can disable a listbox entirely like this:

ListBox1.Enabled = False

I do not believe it is possible to disable selecting some but not all items.

--
Jim Rech
Excel MVP
| Which method do I have to use to disable items in a list- or combobox, so
the
| user can't select them, without removing them?
| Thanks
 
Hi

Maybe in the change event this to disable for example the fourth item

Private Sub ListBox1_Change()
If ListBox1.ListIndex = 3 Then ListBox1.Selected(3) = False
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top