Does anyone know of a method in Excel VBA to read what the field selections are for the autofilter? I.e., what did the user select for autofilter field 1, field 2, etc.?
There are easier things to interpret but the information is in the Worksheet's AutoFilter.Filters Collection. There should be one Filter object for each column and, if .On = True then the criteria properties will return the criteria.
Thanks, Tony... I was able to read the autofilter settings using your suggestion. At least I could in Excel 2000, but I still have to see if it works in Excel 97 (which we still use where I work; that's where I really need it!)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.