Class ErrorCheckingOptions (Excel VBA)

The class ErrorCheckingOptions represents the error-checking options for an application.

Class Application gives access to class ErrorCheckingOptions.


Dim ecos as ErrorCheckingOptions
Set ecos = Application.ErrorCheckingOptions

Properties

BackgroundChecking alerts the user for all cells that violate enabled error-checking rules. When this property is set to True (default), the AutoCorrect Options button appears next to all cells that violate enabled errors. False disables background checking for errors.

EmptyCellReferences when set to True (default), Microsoft Excel identifies, with an AutoCorrect Options button, selected cells containing formulas that refer to empty cells. False disables empty cell reference checking.

EvaluateToError when set to True (default), Microsoft Excel identifies, with an AutoCorrect Options button, selected cells that contain formulas evaluating to an error. False disables error checking for cells that evaluate to an error value.

InconsistentFormula when set to True (default), Microsoft Excel identifies cells containing an inconsistent formula in a region. False disables the inconsistent formula check.

InconsistentTableFormula returns True if the table formula is inconsistent.

IndicatorColorIndex returns or sets the color of the indicator for error checking options.

ListDataValidation a Boolean value that is True if data validation is enabled in a list.

MisleadingNumberFormats

NumberAsText when set to True (default), Microsoft Excel identifies, with an AutoCorrect Options button, selected cells that contain numbers written as text. False disables error checking for numbers written as text.

OmittedCells when set to True (default), Microsoft Excel identifies, with an AutoCorrect Options button, the selected cells that contain formulas referring to a range that omits adjacent cells that could be included. False disables error checking for omitted cells.

TextDate when set to True (default), Microsoft Excel identifies, with an AutoCorrect Options button, cells that contain a text date with a two-digit year. False disables error checking for cells containing a text date with a two-digit year.

UnlockedFormulaCells when set to True (default), Microsoft Excel identifies selected cells that are unlocked and contain a formula. False disables error checking for unlocked cells that contain formulas.