ws.Range("A3:H3000").Select
Selection.AutoFilter
wb.ActiveSheet.Range("$A$3:$H$275").AutoFilter Field:=5, Criteria1:= _
"=*Update*", Operator:=xlAnd
The following is the output after running the filter above
a b c d e
1
2
3 Name Title
5 D001 Update
6 D001 Update
7 D001 Update
10 BMOCADAPP01M001 Update
How can I get a unique count of col a? Everything I try gives me a count of the unfiltered stuff
Dim Server_Name As Range
Dim List As Object
Dim erow As Integer
Set List = CreateObject("Scripting.Dictionary")
erow = ActiveSheet.Cells(1, 1).CurrentRegion.Rows.Count + 1
erow = ActiveSheet.Cells(1, 1).Special
For Each Server_Name In ws.Range("A4:A" & erow)
If Not List.Exists(Server_Name.Value) Then List.Add Server_Name.Value, Nothing
Next
MsgBox List.Count
Thanks
Selection.AutoFilter
wb.ActiveSheet.Range("$A$3:$H$275").AutoFilter Field:=5, Criteria1:= _
"=*Update*", Operator:=xlAnd
The following is the output after running the filter above
a b c d e
1
2
3 Name Title
5 D001 Update
6 D001 Update
7 D001 Update
10 BMOCADAPP01M001 Update
How can I get a unique count of col a? Everything I try gives me a count of the unfiltered stuff
Dim Server_Name As Range
Dim List As Object
Dim erow As Integer
Set List = CreateObject("Scripting.Dictionary")
erow = ActiveSheet.Cells(1, 1).CurrentRegion.Rows.Count + 1
erow = ActiveSheet.Cells(1, 1).Special
For Each Server_Name In ws.Range("A4:A" & erow)
If Not List.Exists(Server_Name.Value) Then List.Add Server_Name.Value, Nothing
Next
MsgBox List.Count
Thanks