Long1 = .Range("B" & .Rows.Count).End(xlUp).Row
.Range(.Cells(1, 1), .Cells(Long1, 2)).AutoFilter Field:=2, Operator:=xlFilterNoFill
Set Range1 = .Range(.Cells(1, 2), .Cells(Long1, 2)).SpecialCells(xlCellTypeVisible)
arrRangeToArray = Range1
MsgBox UBound(arrRangeToArray, 1)