francopiva,
Thanks for the feedback.
You are very welcome. Glad I could help.
And, come back anytime.
hello hiker95
i iam confused with this macro
Sub DelIt()
Dim rFnd As Range, dRng As Range, rFst As String, myList, ArrCnt As Long
myList = Array("memento", "database", "gila")
For ArrCnt = LBound(myList) To UBound(myList)
With Range("D1:D" & Range("D" & Rows.Count).End(xlUp).Row)
Set rFnd = .Find(what:=myList(ArrCnt), _
LookIn:=xlValues, _
lookat:=xlPart, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=True)
If Not rFnd Is Nothing Then
rFst = rFnd.Address
Do
If dRng Is Nothing Then
Set dRng = Range("A" & rFnd.Row)
Else
Set dRng = Union(dRng, Range("A" & rFnd.Row))
End If
Set rFnd = .FindNext(After:=rFnd)
Loop Until rFnd.Address = rFst
End If
Set rFnd = Nothing
End With
Next ArrCnt
If Not dRng Is Nothing Then dRng.EntireRow.Delete
End Sub
This macro works only if the value of the cell in
coloumn D is exactly "memento" and "database" and "gila"
What if I want to delete
all the rows that contains this word "memento" and "database" and "gila" in all column a until z ???
thanks b4