Private Sub CommandButton1_Click()
i = 7
Set col = Columns(i).CurrentRegion.Columns(i).Cells
' ActiveSheet.Range("G:G").AutoFilter Field:=i, Criteria1:=RGB(255, 0, 0)
' ActiveSheet.Range("G:G").AutoFilter Field:=i, Criteria1:=RGB(0, 255, 0)
ActiveSheet.Range("G:G").AutoFilter Field:=i, Criteria1:=RGB(255, 255, 255)
End Sub