Or Try this
Please remember next time to put code tags around your macro (click the # sign on the format bar for the post)
Sub Test()
Dim telrij As Range
Dim bereik1 As Range, bereik2 As Range
Dim Workbereik As Range
Dim xStr(1 To 2) As String
Application.ScreenUpdating = False
On Error Resume Next
Set Workbereik = Range("G6:z400")
xStr(1) = "W"
xStr(2) = "MV"
For i = Workbereik.Rows.Count To 1 Step -1
Set telrij = Workbereik.Rows(i)
Set bereik1 = telrij.Find(xStr(1), LookIn:=xlValues)
Set bereik2 = telrij.Find(xStr(2), LookIn:=xlValues)
If bereik1 Is Nothing And bereik2 Is Nothing Then
telrij.Hidden = True
End If
Next
Application.ScreenUpdating = True
End Sub
Bookmarks