XL.Sheet.AutoFilter.Filter
--------------------------

Returns the filter value by index.

| 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.Filter"; BookRef; SheetIndex; FilterColumnIndex; FilterIndex ) 

**MBS**( **"XL.Sheet.AutoFilter.Filter";** /\* Returns the filter value by index. \*/  
**$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 \*/   
**$FilterIndex**) /\* The index of the filter.  
Range from 0 to [XL.Sheet.AutoFilter](XLSheetAutoFilter.md).FilterSize-1. \*/ 

### 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 |
| FilterIndex | The index of the filter.   Range from 0 to [XL.Sheet.AutoFilter](XLSheetAutoFilter.md).FilterSize-1. | $FilterIndex |

### Result

Returns text or error.

### Description

Returns the filter value by index.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.AutoFilter](XLSheetAutoFilter.md)
- [XL.Sheet.AutoFilter.AddSort](XLSheetAutoFilterAddSort.md)
- [XL.Sheet.AutoFilter.ColumnSize](XLSheetAutoFilterColumnSize.md)
- [XL.Sheet.AutoFilter.FilterSize](XLSheetAutoFilterFilterSize.md)
- [XL.Sheet.AutoFilter.FilterType](XLSheetAutoFilterFilterType.md)
- [XL.Sheet.AutoFilter.GetRef](XLSheetAutoFilterGetRef.md)
- [XL.Sheet.AutoFilter.GetSort](XLSheetAutoFilterGetSort.md)
- [XL.Sheet.AutoFilter.SetRef](XLSheetAutoFilterSetRef.md)
- [XL.Sheet.AutoFilter.SetSort](XLSheetAutoFilterSetSort.md)

This function checks for a license.

Created 1st July 2017 , last changed 1st July 2017

  
[XL.Sheet.AutoFilter.ColumnSize](XLSheetAutoFilterColumnSize.md) - [XL.Sheet.AutoFilter.FilterSize](XLSheetAutoFilterFilterSize.md)

[HTML Version](XLSheetAutoFilterFilter.shtml)