Hello,
I need some codes that filter out non-blank cells and cells without color fill.
not sure how to put these two together using Operator:=xlAnd?
thanks!Please Login or Register to view this content.
Hello,
I need some codes that filter out non-blank cells and cells without color fill.
not sure how to put these two together using Operator:=xlAnd?
thanks!Please Login or Register to view this content.
Last edited by Pepe Le Mokko; 01-15-2020 at 03:14 AM. Reason: Added code tags. Please read fourm rules
Hi,
AutoFilter does not allow more than one operation on the same field. You can get around the limitation by creating two Helper Columns which can be hidden if you want so the look and feel of your data table can remain the same.
The Helper Columns would be:
a. The RGB value of the color as a Long Integer (e.g. White = no color = 16777215, Red = 255, etc.). Alternately the ColorIndex could be used.
For more information see: http://dmcritchie.mvps.org/excel/colors.htm
b. Column containing 'Yes' or 'No' to (non-blank cells and cells without color fill) based on the Value in your original column and the first Helper cell 16777215 value.
AutoFilter would then be applied to the 2nd Helper Column.
Code to create the Helper Columns could be similar to:
See the attached file for working examples of your problem and more.Please Login or Register to view this content.
Lewis
Thank you so much Lewis for your time! This is awesome!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks