C
crisgruba
Hi,
I am new to VBA and would like to know if there is a way to count the
number of rows based on the autofilter criteria?
sample code below
Columns("A").Select
Selection.AutoFilter
Selection.AutoFilter Field:=3, Criteria1:="310"
Selection.AutoFilter Field:=4, Criteria1:=">0", Operator:=xlAnd
on my data, this displays 4 rows. I need to know the number of rows
so that I can create another procedure that loops through the result
set of the auto-filter.
i hope i make sense
thank you all in advance
Cris
I am new to VBA and would like to know if there is a way to count the
number of rows based on the autofilter criteria?
sample code below
Columns("A").Select
Selection.AutoFilter
Selection.AutoFilter Field:=3, Criteria1:="310"
Selection.AutoFilter Field:=4, Criteria1:=">0", Operator:=xlAnd
on my data, this displays 4 rows. I need to know the number of rows
so that I can create another procedure that loops through the result
set of the auto-filter.
i hope i make sense
thank you all in advance
Cris