Welcome to the Forum aljiwani!
I the problem here is that you want to do something with AutoFilter in VBA that you can't do as an Excel user. Autofilter only allows you to select one color at a time for color filtering. However, you can write custom VBA that will scan all the rows and hide the ones that are not yellow or green. When hiding rows, the row numbers do not turn blue to indicate that filtering is on, the same as with autofilter. The user may unhide the rows but it must be done manually rather than by clearing the autofilter.
This code only looks at the color in column A, and assumes you have a header in row 1.
Bookmarks