Possible to have only one value in a listbox

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.
 
C

Chip Pearson

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)
 

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

Top