XL.Sheet.AutoFilter.GetCustomFilter
-----------------------------------

Gets the custom filter criteria.

| 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.GetCustomFilter"; BookRef; SheetIndex; FilterColumnIndex; Selector ) 

**MBS**( **"XL.Sheet.AutoFilter.GetCustomFilter";** /\* Gets the custom filter criteria. \*/  
**$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 \*/   
**$Selector**) /\* What value to return.  
Can be operator1, operator2, andOperator, value1 and value2.e.g. "value1" \*/ 

### 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 |
| Selector | What value to return.   Can be operator1, operator2, andOperator, value1 and value2. | "value1" |

### Result

Returns value or error.

### Description

Gets the custom filter criteria.  
Operator1: operator used by the filter comparison in the first filter criteria; Value1: value used in the first filter criteria; Operator2: operator used by the filter comparison in the second filter criteria; Value2: value used in the second filter criteria; AndOperator: Flag indicating whether the two criteria have an "and" relationship.   
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.AutoFilter](XLSheetAutoFilter.md)
- [XL.Sheet.AutoFilter.ColumnSize](XLSheetAutoFilterColumnSize.md)
- [XL.Sheet.AutoFilter.SetCustomFilter](XLSheetAutoFilterSetCustomFilter.md)

This function checks for a license.

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

  
[XL.Sheet.AutoFilter.FilterType](XLSheetAutoFilterFilterType.md) - [XL.Sheet.AutoFilter.GetRef](XLSheetAutoFilterGetRef.md)

[HTML Version](XLSheetAutoFilterGetCustomFilter.shtml)