Cetara
06-03-2015 10:32:53
Ola gostaria de tirar uma duvida, tenho esse macro do excel para pagar linhas, porem usa apenas uma palavra como critério de cada vez gostaria de saber como colocar 5 ou 6 palavras de uma vez.
Sub DeleteRowsWithWord()
Dim Col As Variant, Word As String
Let Col = "C"
If Len(Col) > 0 And Not Col Like "*[!0-9]*" Then Col = Val(Col)
Let Word = "Urgente"
With Columns(Col)
.Replace Word, "#N/A", xlWhole
.SpecialCells(xlCellTypeConstants, xlErrors).EntireRow.Delete
End With
End Sub
Sub DeleteRowsWithWord()
Dim Col As Variant, Word As String
Let Col = "C"
If Len(Col) > 0 And Not Col Like "*[!0-9]*" Then Col = Val(Col)
Let Word = "Urgente"
With Columns(Col)
.Replace Word, "#N/A", xlWhole
.SpecialCells(xlCellTypeConstants, xlErrors).EntireRow.Delete
End With
End Sub