G
Guest
Can somebody please help me with this code, I'm trying to delete all rows
that are not dated the current date. My date format in column F is
mm/dd/yyyy, do I need to state that. Thanks
LastRow = Cells(Rows.Count, "F").End(xlUp).Row
For RowNdx = LastRow To 1 Step -1
If StrComp(Cells(RowNdx, "F"), =Today(), vbTextCompare) <> 0 Then
Rows(RowNdx).Delete
End If
Next RowNdx
that are not dated the current date. My date format in column F is
mm/dd/yyyy, do I need to state that. Thanks
LastRow = Cells(Rows.Count, "F").End(xlUp).Row
For RowNdx = LastRow To 1 Step -1
If StrComp(Cells(RowNdx, "F"), =Today(), vbTextCompare) <> 0 Then
Rows(RowNdx).Delete
End If
Next RowNdx