View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
dreamz[_7_] dreamz[_7_] is offline
external usenet poster
 
Posts: 1
Default using a multi-select listbox to pull data


thanks.

i ended up writing this:

Private Sub Compute_Click()
Worksheets("Sheet1").Range("A1").Select
For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) Then ActiveCell.Value = ListBox1.List(i)
If ActiveCell.Value = "" Then ActiveCell.Select
If ActiveCell.Value < "" Then ActiveCell.Offset(1, 0).Select
Next i
Range("A1").Select
Range(Selection, Selection.End(xlDown)).Copy
Worksheets("sheet2").Range("A1")
Unload Me
End Sub

works perfectly. :)


--
dreamz
------------------------------------------------------------------------
dreamz's Profile: http://www.excelforum.com/member.php...o&userid=26462
View this thread: http://www.excelforum.com/showthread...hreadid=476924