|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
Sub 筛选不包含()
Application.ScreenUpdating = False
ActiveSheet.AutoFilterMode = False
ActiveSheet.UsedRange.EntireRow.Hidden = False
Set Rng = Nothing
r = ActiveSheet.UsedRange.Rows.Count + 1
arr = [ab1].Resize(r)
brr = Split("A,B,C,D,E", ",")
For j = 3 To r
For Each x In brr
If InStr(arr(j, 1), x) > 0 Then GoTo l1
Next x
If Rng Is Nothing Then
Set Rng = Cells(j, "ab")
Else
Set Rng = Union(Rng, Cells(j, "ab"))
End If
l1:
Next j
If Not Rng Is Nothing Then Rng.EntireRow.Hidden = True
Application.ScreenUpdating = True
End Sub
|
|