View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default Possible to have only one value in a listbox

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)

wrote in message
ps.com...
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.