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
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