Hello to all,
Please some help on this.
I'm trying to store into an array the values of filtered/visible cells in range A2:A10. With the code below
the array only is loaded with the first 3 values (B,C,D), where should be B, C, D, T, K.
The filter is applied based on those cells colored in red.
I'm attaching a sample file for your reference.
Thanks in advance.![]()
Sub Test() Range("A2:A10").AutoFilter Field:=1, Criteria1:=RGB(255, 0, 0), Operator:=xlFilterCellColor Arr = Range("A2:A10").SpecialCells(xlCellTypeVisible).Value End Sub
Bookmarks