Hi
See if this helps. The listbox is called listbox1, it is multiselect and the code is from a commandbutton.
The output is put onto the current sheet and will start in A2 with the output going into columns A, C and D with B left blank.
Private Sub CommandButton1_Click()
If ListBox1.ListIndex <> -1 Then
For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) = True Then
nextrow = Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
Cells(nextrow, 1).Value = ListBox1.List(i, 0)
Cells(nextrow, 3).Value = ListBox1.List(i, 1)
Cells(nextrow, 4).Value = ListBox1.List(i, 2)
End If
Next i
End If
End Sub
HTH
rylo
Bookmarks