hi
i have added a list box and button to your sheet and the following code
Private Sub CommandButton1_Click()
Dim Mycell, Myrng As Range
Dim usedrng As String
Dim lastrow As Integer
lastrow = Cells(Rows.Count, 1).End(xlUp).Row
Sheet2.ListBox1.Clear
usedrng = "D4:D" & lastrow
Set Myrng = Sheet2.Range(usedrng)
For Each Mycell In Myrng
If Mycell >= Sheet2.Range("I2").Value And Mycell <= Sheet2.Range("H2").Value Then
Sheet2.ListBox1.AddItem Mycell.Offset(0, -3)
Sheet2.ListBox1.List(ListBox1.ListCount - 1, 1) = Mycell.Offset(0, -2)
Sheet2.ListBox1.List(ListBox1.ListCount - 1, 2) = Mycell.Offset(0, -1)
Sheet2.ListBox1.List(ListBox1.ListCount - 1, 3) = Mycell
End If
Next
End Sub
Bookmarks