Hi,
my code is not refreshing the autofilter. For i = 1 it's working but on increment code : " no_filtered_rows" shows 0 rows (while there are couple)
.....
Would be grateful for help
my code is not refreshing the autofilter. For i = 1 it's working but on increment code : " no_filtered_rows" shows 0 rows (while there are couple)
Code:
For i = 8 To ostD
accounts() = Split(Worksheets("k").Range("B" & i).Value, ",")
For j = 0 To UBound(accounts)
sAccNo = Trim(accounts(j))
Set rFind = .Cells.Find(sAccNo)
If Not rFind Is Nothing Then
.AutoFilterMode = True
.Range("A1:G" & ostD).AutoFilter Field:=3, Criteria1:=rFind
no_filtered_rows = .Range("A1:G" & ostD).SpecialCells(xlCellTypeVisible).Rows.Count - 1
.....
Would be grateful for help