Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching for a date using VBA in Excel

Status
Not open for further replies.

bdw146

MIS
Dec 2, 2002
2
US
I am trying to use VBA to search for dates that already exist in an Excel worksheet. I think I may need some kind of date qualifier (similar to the Val qualifier).

This is what I have written right now:

For Each cell In Range("AllDueDate")
If cell = SearchForm.DueDate Then
Counter = Counter + 1
lRow = Worksheets("Search Results").Range("a65356").End(xlUp).Row
cell.EntireRow.Copy Worksheets("Search Results").Range("A" & lRow + 1)
End If
Next cell

If anyone can help it would be greatly appreciated.

Thanks,

Brian
 
I just saw my answer under another posting. No need to reply. Thanks anyway!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top