Hi macquhele:
This is set up for dates in Column A And Output on sheet 1 in the same book:
Sub SoldbyDate(BDate As Date, EDate As Date)
Dim SDate As Date, D As Range, r As Long
r = Worksheets("Sheet1").Range("A" & Rows.Count).End(xlUp).row
For Each D In Range("A2:A" & Range("A" & Rows.Count).End(xlUp).row)
SDate = D
If SDate >= BDate And SDate <= EDate Then
D.EntireRow.Copy Worksheets("Sheet1").Range("A" & r): r = r + 1
End If: Next:End Sub
And you invoke it like this:
Call SoldbyDate(#6/15/2012#, #10/15/2012#)
Bookmarks