Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Kimberly,
Use the Selected property to test that an item has been selected: Private Sub CommandButton1_Click() Dim i As Integer With ListBox1 For i = 0 To .ListCount - 1 If .Selected(i) Then MsgBox .List(i) End If Next i End With End Sub -- John Green - Excel MVP Sydney Australia "KimberlyC" wrote in message ... Hi I have created a User from with a List box. The listbox is populated from a range (V14:V25) on my worksheet. The listbox is set to multi select the items. I want to have the user select the items, and when they click the OK button on the form... the items selected will copy or go to a range called "headers" on a worksheet 2. I'm not sure of the code to use to get those selected items to that range when the user clicks the ok button. Any suggestions would be greatly appreciated. Thanks, Kimberly |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to filter listbox data in a form? | Excel Discussion (Misc queries) | |||
user form | Excel Discussion (Misc queries) | |||
How do I fill a cell in a user form from a selection on same form? | Excel Discussion (Misc queries) | |||
Multi-field listbox in an Excel form | Excel Discussion (Misc queries) | |||
Help On User Form | Excel Discussion (Misc queries) |