Multiline edit list box

  • Thread starter Thread starter Tony C
  • Start date Start date
T

Tony C

I am trying to incorporate a list box which aloys me to
make multiple choices from one list.

Help deosn't seem to give any. Can somebody please give
me a steer?

Many thanks
 
Set the ListStyle property of the listbox to 1-
fmListStyleOption.
 
Set the Multiselect option to true. You cane get the selected items like so

Dim i
With ActiveSheet.ListBox1
For i = 0 To .ListCount - 1
If .Selected(i) Then
MsgBox .List(i)
End If
Next i
End With


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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