can someone help with this macro i want to delete the row if column C does not contain a date
this macro seams to delete lots of cells that contain a date
this macro seams to delete lots of cells that contain a date
Code:
Sub clearondate()
Range("A1:f6000").Select
Dim i As Long
'We turn off calculation and screenupdating to speed up the macro.
With Application
.Calculation = xlCalculationManual
.ScreenUpdating = False
'We work backwards because we are deleting rows.
For i = Selection.Rows.Count To 1 Step -1
If WorksheetFunction.CountA(Range("c" & i) = 0) Then
Rows(i).Delete
End If
Next i
end with
End Sub