Possible to have only one value in a listbox

  • Thread starter Thread starter axwack
  • Start date Start date
A

axwack

I am creating a Listbox selection userform where values populated in
master listbox are selected and moved over to a listbox on the right
hand side. Is it possible where only one value goes into the right
hand list box and no more values allowed to populate that listbox?

I have multiselect set to 0.
 
In your code that does the move the item from the left listbox to the right
listbox, use something like

If RightListBox.ListCount = 0 Then
' move the item
End If


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)
 
Back
Top