Hi all,
I'm trying to filter out certain cells in a column that I have filled as green. I only want to see the cells that are not green.
Normally I filter out by using the following code change the colour of certain cells and it works okay:
To change the colour of certain cells I use:
and then to filter out I use:
However, this time I have change the cell colours using:
This time I have used a ColorIndex instead of the color codes, but I'm unsure how to filter these out.
I'm trying to filter out certain cells in a column that I have filled as green. I only want to see the cells that are not green.
Normally I filter out by using the following code change the colour of certain cells and it works okay:
To change the colour of certain cells I use:
VBA Code:
Cells(i, 22).Interior.Color(38, 201, 218)
and then to filter out I use:
VBA Code:
my_sheet.Range("A1").AutoFilter field:=22, Criteria1:=RGB(38, 201, 218), Operator:=xlFilterCellColor
However, this time I have change the cell colours using:
VBA Code:
cell.Interior.ColorIndex = 4
This time I have used a ColorIndex instead of the color codes, but I'm unsure how to filter these out.