# ValidationError

**Kind**: interface | **Module**: [Excel](https://docs.interop.io/adapters/reference/javascript/excel/index.md)

**Source**: https://docs.interop.io/adapters/reference/javascript/excel/validationerror/index.html

Describes a validation error for a specific cell in the sheet.

## Properties

- **`backgroundColor`** (`string`, optional)
  The new background color for the cell. Defaults to the column color.
- **`column`** (`number`, required)
  The location of the error (column 0 is the left-most column in the grid).
- **`description`** (`string`, optional)
  A human-readable description of the problem. This will be displayed in the cell's comment.
- **`error`** (`number`, optional)
  An error code that defines the problem. This will be displayed in the cell's comment.
- **`foregroundColor`** (`string`, optional)
  The new color for the cell. Defaults to the column color.
- **`row`** (`number`, required)
  The location of the error (row 0 is the row containing the column headers).
- **`text`** (`string`, optional)
  The cell text will be replaced by this value; default is not to change the value in the cell.
