Hi all,
noob to excel macro.. need help! I have managed to sort the data using filter in macro. What I need to do is to make a count of the fields "Owner First Name", "Prod" and "Channel". I would like to use these counters for a automating a chart subsequently. Please see below sample data and codes I have so far.
-- removed inline image ---
Sub SortStatsAsiaTCC()
ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=16, Criteria1:= _
"Asia Regional TCC Singapore"
ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21, Criteria1:="AMELIA"
End Sub
'Sub SortOpenCasesByMembers()
' ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21, Criteria1:= _
' "BONIFACIO EDGARDO"
' ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21, Criteria1:="CHIN"
' ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21, Criteria1:="JERLYN"
' ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21, Criteria1:= _
' "JONATHAN"
' ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21, Criteria1:= _
' "MATTHEW"
' ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21, Criteria1:="WENDY"
' ActiveCell.Offset(-6, 8).Range("A1").Select
' ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21
'End Sub
'
Appreciate any help rendered!
noob to excel macro.. need help! I have managed to sort the data using filter in macro. What I need to do is to make a count of the fields "Owner First Name", "Prod" and "Channel". I would like to use these counters for a automating a chart subsequently. Please see below sample data and codes I have so far.
-- removed inline image ---
Sub SortStatsAsiaTCC()
ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=16, Criteria1:= _
"Asia Regional TCC Singapore"
ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21, Criteria1:="AMELIA"
End Sub
'Sub SortOpenCasesByMembers()
' ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21, Criteria1:= _
' "BONIFACIO EDGARDO"
' ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21, Criteria1:="CHIN"
' ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21, Criteria1:="JERLYN"
' ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21, Criteria1:= _
' "JONATHAN"
' ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21, Criteria1:= _
' "MATTHEW"
' ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21, Criteria1:="WENDY"
' ActiveCell.Offset(-6, 8).Range("A1").Select
' ActiveSheet.Range("$A$1:$W$8551").AutoFilter Field:=21
'End Sub
'
Appreciate any help rendered!
Last edited: