I am using Microsoft Interop to read the data.
In excel-sheet, multiple random columns have “filters” set. How do I find out which cells /columns have filters set? I would like lo load only the columns that have filters set.
here is how the sheet looks like
row 1-5, col 1-10 [long text describes the data in the sheet, i do not want to load ]
row 1-10, col 1 [some data, not filtered, i do not want to load]
row 1-10, col 2-15 [filter set for some columns only, i would like to detect the filters and load the entire column data ]
Worksheetinterface has anAutoFilterproperty that returns anAutoFilterinterface.AutoFilterinterface has aFiltersproperty that returns aFiltersinterface.AutoFilterinterface has aRangeproperty that returns the range being filtered.Filtersinterface is a collection ofFilters; these are in the same order as the columns inAutoFilter.RangeFilterinterface has anOnproperty that indicates whether the column is being filtered.