Try something like the following. It will delete rows in which
either 'activity' or 'date' appears in column A.
Dim RowNdx As Long
Dim LastRow As Long
LastRow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row
For RowNdx = LastRow To 1 Step -1
If StrComp(Cells(RowNdx, "A"), "activity", vbBinaryCompare) =
0 _
Or StrComp(Cells(RowNdx, "A"), "date", vbBinaryCompare) =
0 Then
Cells(RowNdx, "A").EntireRow.Delete
End If
Next RowNdx
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com (e-mail address removed)