XL.Sheet.AddIgnoredError
------------------------

Adds the ignored error for specified range.

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

MBS( "XL.Sheet.AddIgnoredError"; BookRef; SheetIndex; rowFirst; ColFirst; rowLast; ColLast; ignoreErrors ) 

**MBS**( **"XL.Sheet.AddIgnoredError";** /\* Adds the ignored error for specified range. \*/  
**$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 \*/   
**$rowFirst**; /\* The first row for the area. First row has index 0.e.g. $row \*/   
**$ColFirst**; /\* The first column for the area. First column has index 0.e.g. $column \*/   
**$rowLast**; /\* The last row for the area. First row has index 0.e.g. $row \*/   
**$ColLast**; /\* The last column for the area. First column has index 0.e.g. $column \*/   
**$ignoreErrors**) /\* The combination of errors to ignore.e.g. "InconsistRange¶EvalError" \*/ 

### 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 |
| rowFirst | The first row for the area. First row has index 0. | $row |
| ColFirst | The first column for the area. First column has index 0. | $column |
| rowLast | The last row for the area. First row has index 0. | $row |
| ColLast | The last column for the area. First column has index 0. | $column |
| ignoreErrors | The combination of errors to ignore. | "InconsistRange¶EvalError" |

### Result

Returns OK or error.

### Description

Adds the ignored error for specified range.   
It allows to hide green triangles on left sides of cells. For example, if a cell is formatted as text but contains a numeric value, this is considered to be a potential error because the number won't be treated as a number, for example, in calculations. It is possible to combine a few IgnoredError values as list.   
Returns error message on failure.  
  
| IgnoredError value | Description |
|---|---|
| NoError | No errors |
| EvalError | Ignore errors when cells contain formulas that result in an error. |
| EmptyCellRef | Ignore errors when formulas refer to empty cells. |
| NumberStoredAsText | Ignore errors when numbers are formatted as text or are preceded by an apostrophe. |
| InconsistRange | Ignore errors when formulas omit certain cells in a region. |
| InconsistFormula | Ignore errors when a formula in a region of your worksheet differs from other formulas in the same region. |
| TwoDigTextYear | Ignore errors when formulas contain text formatted cells with years represented as 2 digits. |
| UnlockFormula | Ignore errors when unlocked cells contain formulas. |
| DataValidation | Ignore errors when a cell's value in a Table does not comply with the Data Validation rules specified. |

### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)

This function checks for a license.

Created 22nd April 2017 , last changed 22nd April 2017

  
[XL.Sheet.AddHyperlink](XLSheetAddHyperlink.md) - [XL.Sheet.AddSelectionRange](XLSheetAddSelectionRange.md)

[HTML Version](XLSheetAddIgnoredError.shtml)