Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Selecting Multiple items in ListBox

This might give you some ideas:

http://groups.google.com/groups?thre...1043%40msn.com

asmenut wrote:

I have two list boxes that I am using as add / remove boxes. Is there a way
to allow multiple selections to be added at the same time.

If List_AddFrom.ListIndex = -1 Then Exit Sub
If Not cbDuplicates Then
' See if item already exists
For i = 0 To List_AddTo.ListCount - 1
If List_AddFrom.Value = List_AddTo.List(i) Then
Beep
Exit Sub
End If
Next i
End If
List_AddTo.AddItem List_AddFrom.Value

End Sub

Private Sub CommandRemove_Click()
If List_AddTo.ListIndex = -1 Then Exit Sub
List_AddTo.RemoveItem List_AddTo.ListIndex
End Sub

Private Sub MultiPage1_Change()
If MultiPage1.Value = 2 Then
EO_Wizard.List_AddFrom.RowSource = ""
EO_Wizard.List_AddFrom.Clear
With EO_Wizard.List_AddFrom
.RowSource = ""
.AddItem "Machine"
.AddItem "Part"
.AddItem "Accessory"
.AddItem "Rescinds PEC"
.AddItem "Preventive Action"
.AddItem "Bulletin Required"
.AddItem "UL/CSA/CE Affected"
.AddItem "Manual Change Required"
.AddItem "S/N at Changeover"
.AddItem "Cost Increase over 5%"
.AddItem "Appearance/Function/Safety Affected"
.AddItem "1st Piece Sample Required"
End With
End If

End Sub


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select Multiple Items and return value for Dropdown or listbox kookie Excel Discussion (Misc queries) 4 January 19th 09 10:18 PM
Moving Mutli-Column Multiple-Selected Listbox items up or down MP Excel Discussion (Misc queries) 0 January 14th 09 09:34 PM
Selecting multiple items and columns from ListBox TK Excel Programming 0 August 25th 04 01:19 AM
Transfer multiple columns items form listbox to range Rolo[_3_] Excel Programming 3 November 15th 03 06:50 PM
Selecting multiple rows from listbox for reporting Brett9[_2_] Excel Programming 3 November 5th 03 11:07 AM


All times are GMT +1. The time now is 05:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"