XL.Sheet.AutoFilter.FilterType
------------------------------

Returns the filter type of this AutoFilter column.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [XL](component_XL.md) | [7.3](newinversion73.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "XL.Sheet.AutoFilter.FilterType"; BookRef; SheetIndex; FilterColumnIndex ) 

**MBS**( **"XL.Sheet.AutoFilter.FilterType";** /\* Returns the filter type of this AutoFilter column. \*/  
**$BookRef**; /\* The reference number for the workbook.e.g. $ref \*/   
**$SheetIndex**; /\* The index of the sheet. This number ranges from 0 to [XL.Book.SheetCount](XLBookSheetCount.md)-1.e.g. 0 \*/   
**$FilterColumnIndex**) /\* The column index of the filter.  
Range from 0 to [XL.Sheet.AutoFilter](XLSheetAutoFilter.md).ColumnSize-1.e.g. $FilterColumn \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| BookRef | The reference number for the workbook. | $ref |
| SheetIndex | The index of the sheet. This number ranges from 0 to [XL.Book.SheetCount](XLBookSheetCount.md)-1. | 0 |
| FilterColumnIndex | The column index of the filter.   Range from 0 to [XL.Sheet.AutoFilter](XLSheetAutoFilter.md).ColumnSize-1. | $FilterColumn |

### Result

Returns type or error.

### Description

Returns the filter type of this AutoFilter column.  
| Filter value | Description |
|---|---|
| Value | Filter by specified values. |
| Top10 | The top N (percent or number of items) to filter by. |
| Custom | Custom filter with specified criteria. |
| Dynamic | Specifies dynamic filter criteria. |
| Color | Specifies the color to filter by. |
| Icon | Specifies the icon to filter by. |
| Ext | Defines flexible storage extensions. |
| Not set | No filter. |

### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.AutoFilter](XLSheetAutoFilter.md)
- [XL.Sheet.AutoFilter.AddFilter](XLSheetAutoFilterAddFilter.md)
- [XL.Sheet.AutoFilter.ColumnSize](XLSheetAutoFilterColumnSize.md)
- [XL.Sheet.AutoFilter.Filter](XLSheetAutoFilterFilter.md)
- [XL.Sheet.AutoFilter.FilterSize](XLSheetAutoFilterFilterSize.md)
- [XL.Sheet.AutoFilter.GetTop10](XLSheetAutoFilterGetTop10.md)
- [XL.Sheet.AutoFilter.SetTop10](XLSheetAutoFilterSetTop10.md)

This function checks for a license.

Created 1st July 2017 , last changed 16th March 2020

  
[XL.Sheet.AutoFilter.FilterSize](XLSheetAutoFilterFilterSize.md) - [XL.Sheet.AutoFilter.GetCustomFilter](XLSheetAutoFilterGetCustomFilter.md)

[HTML Version](XLSheetAutoFilterFilterType.shtml)